0
我有以下的DataTable添加具有引导按钮的div jQuery的数据表列
<script>
$(document).ready(function() {
$("#productTable").DataTable({
"info": false,
"processing": true, // for show progress bar
"serverSide": true, // for process server side
"filter": false, // this is for disable filter (search box)
"orderMulti": false, // for disable multiple column at once
"ajax": {
"url": "/Home/LoadProductData",
"type": "POST",
"datatype": "json"
},
"columns": [
{ "data": "Product_ID", "name": "Product_ID", "autoWidth": true },
{ "data": "Product_Title", "name": "Product_Title", "autoWidth": true }
]
});
});
</script>
现在我想补充以下div
具有引导按钮
<div class="btn-group btn-group-sm" id="CreateButton">
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("Product_Edit","Home", new { })';return false;">Edit</button>
</div>
这是可以直接插入?如果没有,如何配置?
你想在所有行的列中添加此按钮? – tmg
@tmg,yp正好 – kez