column visibility by role based
column visibility by role based

how to visible column role based.
`<th width="6%" id="role"></th>`
columnDefs : [
{ targets: 11, visible: document.getElementById('role').value == '[ROLE_ADMIN]' }
],
it's Not working properly
This discussion has been closed.
Answers
I have tried with php but not working
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
i got these errors
I have already mentioned columnDefs 11 orderable false
i have removed 11 from orderable
now its working fine Thanks