{hero}

searchBuilder.filterChanged

Since: SearchBuilder 1.0.0

Function to update title text when selections are made.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This option is an alias to searchBuilder.filterChanged, which should be preferred when using DataTables 2+. It can be used to configure SearchBuilder regardless of how the panes are inserted into the document (layout or searchBuilder).

Please refer to the documentation for searchBuilder.filterChanged for full details of this option.

Type

function searchBuilder.filterChanged(count)

Parameters:

Example

Set text for custom element:

new DataTable('#myTable', {
	layout: {
		top1: 'searchBuilder'
	},
	searchBuilder: {
		filterChanged: function (count) {
			$('.SBDetails').text(
				table.i18n(
					'searchBuilder.collapse',
					{ 0: 'AdvancedFilter', _: 'Advancedfilter (%d)' },
					count
				)
			);
		}
	}
});