svelte-simple-datatables icon indicating copy to clipboard operation
svelte-simple-datatables copied to clipboard

Clear search input and table filter programmatically

Open WeAreELIC opened this issue 4 years ago • 1 comments

Hey, is there a way to programmatically clear the search input and table results? I'm wanting to add a "clear (x)" icon to the search input (and filter inputs) as well as clear the data when the Escape key is pressed.

It would also be great to be able to change the rows per page via a dropdown. Any quick ideas on how to do that?

WeAreELIC avatar Nov 19 '20 01:11 WeAreELIC

setting the value of that (actual) field to an empty string clear the search. you get the idea.

field has an id, just look it (the ID) up with (FF) CTRL+SHIFT+C

michapixel avatar Sep 27 '22 10:09 michapixel