Filter table by specific column(s) but still show every column.

Inputs.search() adds a .columns property to the result array which Inputs.table() uses as default column set. You can either define your own columns:

Inputs.table(search, {columns: ["a", "b", ...]})

or replace the property:

Inputs.table(Object.assign(search, {columns: null}))

or filter it out:

Inputs.table([...search])
1 Like