Since: SearchBuilder 1.0.0

Button that is enabled when SearchBuilder is to be used through a button.
Please note - this property requires the SearchBuilder extension for DataTables.


When working with SearchBuilder you will typically wish to configure SearchBuilder options to customise either appearance or functionality.

By providing an config object buttons.buttons.config the SearchBuilder within the button can be customised as desired. The config object is structured in the same way as the SearchBuilder config object is normally.

SearchBuilder makes use of the following buttons properties.


SearchBuilder Button initialisation: Set the config for SearchBuilder to set the depthLimit option:

new DataTable('#myTable', {
	layout: {
		topStart: {
			buttons: [
					extend: 'searchBuilder',
					config: {
						depthLimit: 2


The following options are directly related and may also be useful in your application development.