How can I hide a column in a jQuery datatables based on a user role

强颜欢笑 提交于 2019-12-12 04:20:53

问题


I have a jQuery datatables implemented and it's working just fine. However, based on a user role, I would like to hide a column. To fix this, in Rails, I can set the conditional within a view/template. But that doesn't' work because on each request I get an alert telling me about for how many rows data is missing to be pulled into. Any ideas as to how to fix this? Much appreciated.
Alek

来源:https://stackoverflow.com/questions/12574635/how-can-i-hide-a-column-in-a-jquery-datatables-based-on-a-user-role

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!