To use this, download, install, and activate the Extension like a regular WordPress plugin. Then, on the page where you want to show the table, insert the extended Shortcode
[table id=123 datatables_button_filter=true /] |
and change the 123
to the desired table ID. After that, you can add HTML code like
<button class="table-123-filter" data-filterterm="searchterm">Button text</button> |
anywhere on the page, to create a button that will run the filter when clicked. You will need to adjust the table ID (123
in the example) and the value for the data-filterterm
attribute.
If this Extension is helpful for you, please consider supporting further TablePress development with a donation. Thank you!