Author Topic: Toggle header filter  (Read 2297 times)

Mendrace

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Toggle header filter
« on: May 15, 2016, 11:53:20 pm »
Hi.
Another question  :)
Is there a way to toggle the visibility of header filter?

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Toggle header filter
« Reply #1 on: May 16, 2016, 09:06:48 am »
Yes, it's simply a matter of toggling filterModel.header option.

Code: [Select]
listener: function(){
this.option('filterModel.header', !this.option('filterModel.header'));
this.refresh();
}

Example: http://paramquery.com/pro/demos/filter_header_local

Mendrace

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Toggle header filter
« Reply #2 on: May 17, 2016, 02:02:41 am »
Ok. Thanks for your help  :D