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