Skip to main content

Filter data in the Table component

Learn how to filter and search table data.

The Table component has built-in filter and search options. You can configure default filters, combine multiple filters together, and connect an input component to search through table rows.

Apply filters

Filters do not function if server-side pagination is enabled. Any filtering logic must be added to the resource query.

Table filters are comprised of rules and groups. You can create and edit table filters directly from the table's toolbar, with the Filter component, or using JavaScript.

  • Filter rules compare column values for each row to the operator and value you specify.
  • Filter groups combine filter rules for each row and returns results based on the And or Or logical operator.
Operators

The following operators are available for use in table filters. The operator you use depends on the type of data used in the specified column.

OperatorDescriptionData Type
<Less thanNumber, Date
<=Less than or equal toNumber, Date
>Greater thanNumber, Date
>=Greater than or equal toNumber, Date
=Equal toNumber, Text
!=Not equal toNumber, Text
IsIsBoolean, Text
Is NotIs notBoolean, Text
IncludesIncludesText, Array
Does Not IncludeDoes not includeText, Array
Is TrueIs trueBoolean
Is FalseIs falseBoolean
Is EmptyIs emptyText, Array
Is Not EmptyIs not emptyText, Array
IntersectsIntersectsArray
Is One OfIs one ofText, Number, Array
Is None OfIs none ofText, Number, Array
Is BeforeIs beforeDate
Is AfterIs afterDate

Click in the table toolbar to set filters. This displays a popup filter editor where you can specify filter rules and groups.

Filter table data from the toolbar.

The following examples filter different types of data based on the column value and format.

ColumnOperatorValueDescription
Age>30Filters rows where the Age is greater than 30.
NameIncludesJohnFilters rows where the Name includes the string "John".
StatusIs One Of["Active", "Pending"]Filters rows where the Status is either "Active" or "Pending".
DateIs Before2024-01-01Filters rows where the Date is before January 1, 2024.

Configure default filters

Use the Default filters settings to configure filter rules that are active by default. Each To configure a filter:

  1. Click + to add a filter.
  2. Select the Column by which to filter.
  3. Select the Operator for comparison, such as Includes or Is not empty.
  4. Specify the value with which to compare.

Default filter rules are applied to the root level of filters. You cannot configure default filter groups with nested rules.

Search table data

The Search and Search term settings enable you to add search functionality to tables without the use of filters. You can reference any value to use as the search term, such as an input component. To add a search field:

  1. Add a Text Input component to the canvas.
  2. Update the table's Search term setting to reference the Text Input component value, such as {{ textInput1.value }}.

The search term applies to all column values and the table instantly updates as the input value changes. You can configure the Search setting to change the type of search to perform, such as Fuzzy match or Exact.