Filtering
Filtering configuration is added along with the each column config.
Simple Filter
Filter the rows based on the given keyword. If you don't specify filter config then filter feature will be disabled for the specific column.
Example
Attributes details
Attributes
Description
Type
Default
filter.type
Defines the type of filter.
String
Empty string
filter.placeholder
Placeholder is hint
text for filter text box
String
Empty string
filter.case_sensitive
Enable/Disable case sensitive filtering.
Boolean
false
Select Filter
You can have select dropdown filter for each columns. The options in the dropdown will be rendered with bootstrap 4 custom radio/checkboxes.
Example
Attributes details
Attributes
Description
Type
Default
filter.type
Defines the type of filter.
String
Empty string
filter.mode
Defines the mode of selection in the dropdown. Allowed options are single
and multi
. If the mode is single
, then dropdown will be rendered with radio
buttons, else if the mode is multi, then dropdown will be rendered with checkboxes
.
String
"single"
filter.placeholder
Default text for the dropdown.
String
Empty string
filter.options
You can provide your list of name and value objects to be populated in the multi-select filter dropdown.
Array
Empty array
Last updated