Jquery数据表隐藏删除按钮
我正在使用
$('#AffiliatedContractorLookup').dataTable().makeEditable
我想让用户能够添加新记录,因此为此目的我使用了
但此工具栏同时显示添加和删除按钮。我想隐藏删除按钮。我怎样才能做到这一点?
I am using
$('#AffiliatedContractorLookup').dataTable().makeEditable
I want to give user the ability to add a new record , so for that purpose I used,
<div class="add_delete_toolbar" />
But this toolbar displays both Add and delete button. I want to hide the delete button. How can I acieve that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我知道这是一个老话题,但我也遇到了同样的问题。我尝试了一些解决方案,这是一个对我有用的解决方案:
在 databled-editable 文件中,您有这一行:
将其放在注释中,并且不会添加按钮
I know this is an old topic, but I had the same problem. I tried some solutions and here's one that worked for me:
in the file databled-editable you have this line:
place it in comment, and the button won't be added
更简单:
Even easier:
仅将“添加”按钮替换
为
To have only the "Add" button simply replace
with