Arrow in with dropdown and column-stuff

Arrow in with dropdown and column-stuff

tekuilatekuila 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

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736

    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 and column().visible() to change the column visibility.

    Kevin

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736

    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

Sign In or Register to comment.