{hero}

stateRestore.remove

Since: StateRestore 1.0.0

Enable/Disable the removal of states.
Please note - this property requires the StateRestore extension for DataTables.

Description

This option allows for the removal of states to be enabled or disabled.

As default the value is true, meaning that states can be removed. If this option is set to false, then removal will be disabled.

Take a look at this example to see this in action.

Type

boolean

Description:

true if removing states is to be enabled, false if not.

Default

  • Value: true

The default value for the stateRestore.remove option is true meaning that as standard removing states will be enabled.

Example

Disable removal of new states:

$('#example').DataTable({
    dom: 'Blfrtip',
    buttons:[
        'createState',
        {
            extend: 'savedStates',
            config: {
                remove: false
            }
        }
    ]
});