luci-base: enable table filtering via .filterrow
authorPaul Donald <redacted>
Mon, 2 Feb 2026 21:49:04 +0000 (22:49 +0100)
committerPaul Donald <redacted>
Tue, 3 Feb 2026 05:42:16 +0000 (06:42 +0100)
commit315dbfc7498e2f43afb0119b992915e8f311bc37
treef9373b9a9b2e61eab12da7f467321896e267d122
parent2da63d766a765ecae80a1d0a9849fb5f8c5aebb5
luci-base: enable table filtering via .filterrow

filter() is already available to pre-filter any data we
want to display in a table prior to render, although this
is primarily to filter on data types in a config file.

Now it is possible to display a header row (thead)
with text fields to search a table column. Set the table
property .filterrow to true to enable. It is null by default
so the filter header row is disabled. The filters work
cumulatively, so they can be used in combination.

Stabilize column widths so when nothing shows due to
filters, the filter header rows don't eat up all the table
width and jump around if action buttons are present at the
right end of data rows.

Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/form.js
git clone https://git.99rst.org/PROJECT