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


I want to be able to filter by a specific column of the table (through, but not narrow the table to just that column.

Currently I have:

viewof theseCols =, {multiple:true, value:data.columns})
viewof search  = {
  let n =,{
return n

This does succesfully allow to search for only the selected columns, but also narrows the table down to just those columns. I’d like for every column to remain visible.

Thanks. 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:

1 Like