how to set backgound color for column visibility

how to set backgound color for column visibility

benoitttttbenoittttt Posts: 3Questions: 1Answers: 0

hello

i am using extension : https://datatables.net/extensions/buttons/examples/column_visibility/simple.html

i would like to style button, because for my opinion the background color to distinguish which one is selected, are for me not enough visible

thx for your help

Answers

  • allanallan Posts: 63,799Questions: 1Answers: 10,514 Site admin

    If you right click on the element and select "Inspect" you will be able to see the styles used for the button and also its class names you can use to target it in CSS. For example you could use:

    div.dt-button.buttons-columnVisibility.active {
      ...
    }
    

    Allan

  • benoitttttbenoittttt Posts: 3Questions: 1Answers: 0

    thx for your answer, i have already tried something like that

    the class is dt-button buttons-columnVisibility active

    but nothing change :/

  • benoitttttbenoittttt Posts: 3Questions: 1Answers: 0

    i have found the problem

    must use background, not background-color

This discussion has been closed.