className is not working
className is not working
hi
I have written like below
buttons: [{
extend: 'colvis',
text: 'Column Visibility',
className: 'dt-button-collection-custom',
columns: ':not(:first-child)',
}}
but it doesn't take the className,actually my requirement is i want to add the scrollbar for column Visibility button that's why i am adding custom className but it is not taking tha classNmae
please help me how to do this
thanks
Krishna chaitanaya
Answers
Hello Krishna,
Are your dt-button-collection-custom stored in an external css file ?
I do the same things and it works.
Marc
yes I written in external css file like this
div.dt-button-collection-custom {
overflow-y: scroll;
max-height:450px;
}
but it is not working if it is working for you can u explain with example
for example, i have in an external css file : .
and in my datatables
I tried by giving adding width ,overflow:scroll,max-height in my own css file and i mentioned that class like below
it is applying to button , but I want it to column visibility div where we are showing column names.