{hero}

buttons

Since: Buttons 1.0.0

Buttons configuration object.
Please note - this property requires the Buttons extension for DataTables.

Examples

Creation of Buttons using defaults and insertion by dom:

new DataTable('#myTable', {
	layout: {
		topStart: 'buttons'
	},
	buttons: true
});

Creation of Buttons with array configuration of buttons and insertion by dom:

new DataTable('#myTable', {
	layout: {
		topStart: 'buttons'
	},
	buttons: ['copy', 'csv', 'excel']
});

Creation of Buttons with object configuration and insertion by dom:

new DataTable('#myTable', {
	layout: {
		topStart: 'buttons'
	},
	buttons: {
		name: 'primary',
		buttons: ['copy', 'csv', 'excel']
	}
});