Use dropdown to filter hidden column
Use dropdown to filter hidden column
guycothal
Posts: 1Questions: 1Answers: 0
I am trying to figure out how to:
1. Add a dropdown between the "show entries" and "search" area
2. Hide a column that is if user is active/inactive
3. use dropdown to filter that column
This question has an accepted answers - jump to answer
Answers
See this example to add custom toolbar elements.
Use the
columns.visible
init option orcolumn().visible()
to hide columns.Create an event handler for the select input and use
column().search()
in the event handler. See this example that applies filters to all columns in the footer. You will need to modify it a bit for your particular solution.Kevin