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 /]
Code language: JSON / JSON with Comments (json)
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>
Code language: HTML, XML (xml)
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 an Extension is useful for you, please check out the available TablePress Premium features and consider getting a Premium license plan, which bring even more features for you and your site visitors. Thank you!