Arrow in with dropdown and column-stuff
Arrow in with dropdown and column-stuff
tekuila
Posts: 24Questions: 5Answers: 0
How to do something like this dropdown and customise the table based on the selected options in a dropdown that appears like this?:
Screenshot: https://snipboard.io/XvOlyn.jpg
The arrow with dropdown appears when hovering the th.
This screenshot is from PowerOffice.
Thank you
Replies
That capability is not built into Datatables. However you could create your own solution. You can create a click event in each column header that shows the menu of options. You can then use various Datatables APIs like
order()
to change the sorting andcolumn().visible()
to change the column visibility.Kevin
This thread has an example of a context menu that may help. In the example right click on a cell to perform a search. Looks like it uses jQuery UI Contextmenu.
Kevin