{hero}

button.searchPanes

Since: SearchPanes 1.1.0

Enable SearchPanes through a button.
Please note - this property requires the SearchPanes extension for DataTables.

Description

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

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

SearchPanes makes use of the following Buttons properties.

Example

SearchPanes Button initialisation: Set the config for SearchPanes to enable the cascadePanes option:

new DataTable('#myTable', {
	layout: {
		topStart: {
			buttons: [
				{
					extend: 'searchPanes',
					config: {
						cascadePanes: true
					}
				}
			]
		}
	}
});