• Resolved Nano

    (@rfcyrus)


    Is it possible to make a clickable text to perform a search/filter?

    For example: if i click on the text inside the table “red” it will only show me all entrys that contain the word “red”. (Just like if you enter it on the search field)

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Something like this is possible by directly using the DataTables JS library’s API.
    For some examples, using buttons, you can use this TablePress Extension: http://tablepress.org/extensions/datatables-button-filter/

    Regards,
    Tobias

    Thread Starter Nano

    (@rfcyrus)

    Many Thanks, this is exactly what i was looking for! It works great.

    However i got one question now: is there a chance to style the button i.e. change the font size? I already looked at the plugin editor but couldn’t find any setting.

    Thanks!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, you can simply style that with CSS in your theme (or in the “Custom CSS” in TablePress). Also, you don’t have to use <button> elements, you can also use <a> or <span>.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘search criterion clickable’ is closed to new replies.