Filter data by searching. Use spaces between terms.
Select individual rows with floating checkboxes next to the first column. Sort the table by clicking column heads.
viewof searchOptions = Inputs.radio(["all terms", "any term"], {value: "all terms", label: null});
viewof search = (searchOptions === "all terms") ?
Inputs.search(data,
{
format: (r) => `${r.toLocaleString()} row${r === 1 ? '' : 's'}`
})
:
Inputs.search(data,
{
filter: filterFunctionCustomOr,
format: (r) => `${r.toLocaleString()} row${r === 1 ? '' : 's'}`
});