luci-base: cbi.js, ui.js: add custom validation callbacks, new ui widgets
authorJo-Philipp Wich <jo@mein.io>
Mon, 1 Apr 2019 14:00:10 +0000 (16:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:23 +0000 (15:36 +0200)
commit808b9f36eb60cf4717cbf28b163d7ad2faa7f157
tree466548e3bd93727a67b9016fc399ba31b2e0da66
parent2beb9fa16fffc0cceea1d90c191309dfbcc307cc
luci-base: cbi.js, ui.js: add custom validation callbacks, new ui widgets

Implement further widget primitives like text inputs or checkboxes and
support custom validation callback functions when instantiating CBI
validators.

Also add support initializing ui.js widgets from the "data-ui-widget"
HTML attribute.

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