luci-base: introduce new LuCI.ui.Table class
authorJo-Philipp Wich <jo@mein.io>
Wed, 23 Feb 2022 13:39:11 +0000 (14:39 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 24 Feb 2022 22:45:17 +0000 (23:45 +0100)
commite0e6989a4a6e06fb9375b41e4baf62d265dd2eaf
treeebe152f17c6c99f47573df3b6461b4a52bb33d67
parent5be8c4b7303e5c9cf35b9ab87fb379d24dadd454
luci-base: introduce new LuCI.ui.Table class

Introduce a new `LuCI.ui.Table` class to simplify generating HTML tables
for data output and turn the existing `cbi_update_table()` procedure into
a wrapper around this new facility.

Tables generated by the new class closely resemble the old markup but
provide additional sorting capabilities.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/htdocs/luci-static/resources/ui.js