Build a datatable component, step by step.
Filter data
We also want to filter the table data for each column.
We add a new row in thead
and place a ThFilter.svelte
component - a text
input.
We will need to specify which object key will be filtered by passing the filterBy
property
to the component.
- Code
- Result
- Data