How to add a checkbox for filtering one column value ?
How to add a checkbox for filtering one column value ?
Hello,
could you give me an example to add a button checkbox for filtering one column value ?
I tried to search in your example but I didn't found that.
I just want to add a checkbox in buttons, when I checked it I want to see one column value
(if checked see value 3 in row 3 for example)
Thanks a lot for your help.
This discussion has been closed.
Replies
You want a checkbox in a button? Or you want a button to act like a checkbox?
For the latter, that can readily be done using the API - simply call
column().search()
in thebuttons.buttons.action
function. You can also usebutton().active()
to make it look active or not.See also the custom buttons documentation.
Allan
Thanks a lot Allan, it's ok problem solved :) have a nice day.