{hero}

searchBuilder

Since: SearchBuilder 1.0.0

A single button that displays the SearchBuilder container in a popover.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This button type creates a popover that contains the SearchBuilder container. This allows SearchBuilder to be used without it taking up extra space in the dom.

Options

This button can have the following options set in its configuration object to customise its actions and display:

Examples

Basic SearchBuilder button initialisation:

$('#myTable').DataTable( {
    buttons: [
        'searchBuilder'
    ],
} );

SearchBuilder configuration using a button:

new $.fn.dataTable.Buttons( table, {
    buttons:[
        {
            extend: 'searchBuilder',
            config: {
                depthLimit: 2
            }
        }
    ],
} );