This code shows how to add a custom search filter drop-down to the header of a DataTable. It creates a drop-down menu that displays the unique list of strings from a column called Category. When the user selects a category from the dropdown-menu, the datatable will be rendered with only records with the Category from the selected value.
-
Notifications
You must be signed in to change notification settings - Fork 5
Add a custom filter dropdown to DataTables
clintmcmahon/add-filter-datatable
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Add a custom filter dropdown to DataTables