{hero}

searchPanes.clear

Since: SearchPanes SearchPanes 1.0.0

Disable buttons to allow quick clearing of selections in panes.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will display the buttons which allow selections to be cleared in individual panes and across all panes. When searchPanes.clear is set to false, the clear buttons will not be present.

The searchPanes.clear functionality is useful when wanting to quickly deselect all of the options in a pane. It is useful to be able to disable these buttons, for example on smaller tables with less options it may be preferrable to employ a custom user interface.

Type

boolean

Description:

By setting the searchPanes.clear option to false, the buttons which allow for individual panes and all of the panes as a collective group to be cleared will not be shown.

Default

  • Value: true

The default value for the searchPanes.clear parameter is true. When this default value is in place the buttons which allow selections to be cleared will be visible.

Example

Disable Clear Buttons:

$(document).ready(function() {
    $('#example').DataTable({
        searchPanes: {
            clear: false
        },
		dom: 'Plfrtip'
    });
});