{hero}

buttons.buttons.extend

Since: Buttons 1.0.0

Define which button type the button should be based on.
Please note - this property requires the Buttons extension for DataTables.

Example

Two buttons, one with customisations:

new DataTable('#myTable', {
	layout: {
		topStart: 'buttons'
	},
	buttons: ['copy', { extend: 'excel', text: 'Save as Excel' }]
});