DataTable Example:
(1)Add custom button
"buttons": [{"text": ' Custom Button',
"action": function () {
alert("Custom Button Clicked");
}
},
(1)Add custom button
"buttons": [{"text": ' Custom Button',
"action": function () {
alert("Custom Button Clicked");
}
},
]
(2) Button Menu
"buttons":[
{
extend: 'collection',
text: 'Menu',
className: "menuMain",
autoClose: true,
buttons: [
{
text: 'Item 1',
action: function () {
alert("Item 1 Selected");
}
},
{
text: 'Item 2',
action: function () {
alert("Item 2 Selected");
}
}
]
},
]
(2) Button Menu
"buttons":[
{
extend: 'collection',
text: 'Menu',
className: "menuMain",
autoClose: true,
buttons: [
{
text: 'Item 1',
action: function () {
alert("Item 1 Selected");
}
},
{
text: 'Item 2',
action: function () {
alert("Item 2 Selected");
}
}
]
},
]