buttons.dom.container
DOM configuration of the Buttons container element.
Please note - this property requires the Buttons extension for DataTables.
Description
This option controls the HTML tag that is used for the element that contains the buttons that are created for the Buttons control.
Please refer to the buttons.dom
documentation for an overview of the DOM structure that Buttons will create. In this specific case, this option controls the <div class="dt-buttons">...</div>
that is shown in the example HTML there.
Type
Examples
DataTables initialisation: Use an aside
tag for the container display:
$('#myTable').DataTable( {
buttons: {
dom: {
container: {
tag: 'aside'
}
}
}
} );
Instance initialisation: Use an aside
tag for the container display:
new $.fn.dataTable.Buttons( table, {
buttons: {
dom: {
container: {
tag: 'aside'
}
}
]
} );