Author Topic: Head filter listenner  (Read 586 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 130
    • View Profile
Head filter listenner
« on: April 28, 2022, 11:21:50 am »
In head filter, filter action is triggered when filterbox got change. Is it possible to trigger filter action when TAB or ENTER keys are pressed?
Could you like to show me how to intercept the listenner of head filter change envent

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6178
    • View Profile
Re: Head filter listenner
« Reply #1 on: April 29, 2022, 11:42:39 am »
filterbox UI calls filter method under the hood.

filter method can be called from anywhere i.e., by click of a button or any custom action.

https://paramquery.com/pro/api#method-filter

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 130
    • View Profile
Re: Head filter listenner
« Reply #2 on: April 29, 2022, 01:51:16 pm »
In head filter, filter action is triggered when filterbox got change automatically, this is a problem. Can it be stopped? Then it can be trigger in need.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 130
    • View Profile
Re: Head filter listenner
« Reply #3 on: April 30, 2022, 06:53:06 pm »
In head filter, filter action is triggered automatically even when filterbox got one letter change , this is will send server many unnesessary requests. Can it be stopped? Then it can be trigger in need.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6178
    • View Profile
Re: Head filter listenner
« Reply #4 on: May 02, 2022, 09:57:51 am »
Filter dropdowm menu can be used for filtering.

There are buttons Ok and clear in the dropdown menu to initiate the filtering process. Filtering process is not initiated until any button is clicked.

https://paramquery.com/pro/demos/filter_header
« Last Edit: May 02, 2022, 09:59:37 am by paramvir »

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 130
    • View Profile
Re: Head filter listenner
« Reply #5 on: May 03, 2022, 05:37:48 am »
Thank you for kindly help, I will try it.