No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Listening datatable search box clear event

    Help
    2
    4
    1108
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      besingamkb last edited by

      Hi Everyone,

      I want to save the search query on the vuex state on data table search box. I need an idea how you guys do it. and also once the clear button is clicked how can I listen to that click event? TIA

      1 Reply Last reply Reply Quote 0
      • a47ae
        a47ae last edited by

        As far as I know, it is not possible at the moment to access the filter field on the DataTable component directly. It seems like you have to build your own or modify the existing solution, by overriding the behavior.

        1 Reply Last reply Reply Quote 0
        • B
          besingamkb last edited by

          How can I override it’s behavior?

          1 Reply Last reply Reply Quote 0
          • a47ae
            a47ae last edited by

            You import the DataTable component in a new file and then do your changes and export it as your new component. But because the DataTable consists of multiple helper components, I am not sure this will work so easily.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post