samedi 29 juin 2019

jQuery Datatables: Add checkbox to column-visibility dropdown items?

I am using a basic column visibility button to create a dropdown list where the user can show/hide desired columns.

The above example uses different colored backgrounds to show whether a dropdown item has been enabled.

Is it possible to also add a checkbox to the left of the item text to further reflect the enabled state?

Like this:

enter image description here

The above screenshot is from this webpage, but it appears that the supplied code no longer works with the current version of DataTables.




Aucun commentaire:

Enregistrer un commentaire