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

    DataTable custom filters

    Help
    2
    2
    913
    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.
    • P
      pavarine last edited by

      Following the documentation for the lastest release I know that is possible to implement custom filtering function for datatables by including

      :filter-method=“myFilter” on my datatable

      But when I do this Im getting the following errors (when trying to type anything in the filters field):

      vue.runtime.esm.js?2b0e:1737 TypeError: Cannot read property ‘length’ of undefined
      at VueComponent.computedData (QTable.js?eb51:97)
      at Watcher.get (vue.runtime.esm.js?2b0e:3138)
      at Watcher.evaluate (vue.runtime.esm.js?2b0e:3245)
      at VueComponent.computedGetter [as computedData] (vue.runtime.esm.js?2b0e:3503)
      at VueComponent.computedRowsNumber (QTable.js?eb51:109)
      at Watcher.get (vue.runtime.esm.js?2b0e:3138)
      at Watcher.evaluate (vue.runtime.esm.js?2b0e:3245)
      at VueComponent.computedGetter [as computedRowsNumber] (vue.runtime.esm.js?2b0e:3503)
      at VueComponent.pagesNumber (table-pagination.js?ccb8:54)
      at Watcher.get (vue.runtime.esm.js?2b0e:3138**)

      That makes me think that I have to include a rowsNumber property in my pagination settings, but I also know that according to docs the rowsNumber property should be used only for server side pagination/filtering/sorting, what is not my case.

      What’s the point?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by s.molinari

        Are you feeding an array of objects into the data prop?

        Scott

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