buttons.buttons.tag
Since: Buttons 3.0.0
Set the tag for the button.
Please note - this property requires the Buttons extension for DataTables.
Description
By default Buttons will use the tag
property defined by buttons.dom.button
configuration object as the name of the HTML element to create. This option provides the ability to override that on a per-button basis, where as buttons.dom.button
will apply to all buttons.
Type
Default
- Value:
undefined
Example
Use an a
tag for a button:
new DataTable('#myTable', {
layout: {
topEnd: {
buttons: [
{
extend: 'copy',
tag: 'a'
}
]
}
}
});