{hero}

buttons.buttons.className

Since: Buttons 1.0.0

Set the class name for the button.
Please note - this property requires the Buttons extension for DataTables.

Example

Set class name:

new DataTable('#myTable', {
	layout: {
		topStart: 'buttons'
	},
	buttons: [
		{ extend: 'copy', className: 'copyButton' },
		{ extend: 'excel', className: 'excelButton' }
	]
});