{hero}

language.stateRestore

Since: StateRestore stateRestore 1.0.0

Container for options for language.
Please note - this property requires the StateRestore extension for DataTables.

Description

As standard, no custom options will be applied to the StateRestore language options if language.stateRestore is undefined. Otherwise the related options will be applied if they are defined within this object.

This is useful as it means that the language options can be set for StateRestore leading to increased internationalisation.

Type

object

Description:

This option is capable of holding all of the sub-options for languages for stateRestore.

Default

  • Value: undefined

The default value for the language.stateRestore object is undefined. Meaning that as standard there are no extra options to add to the panes for language.

Example

Alter language options: :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
new DataTable('#myTable', {
    language: {
        stateRestore: {
            removeSubmit: 'Remove',
            removeConfirm: 'Confirm state removal.',
            emptyStates: 'No states',
            renameButton: 'Change Name',
            renameLabel: 'New value:'
        }
    },
    layout: {
        topStart: {
            buttons: ['createState', 'savedStates']
        }
    }
});

Related

The following options are directly related and may also be useful in your application development.

Comments (0)

No comments posted for this page yet. Be the first to contribute!

Post new comment

Contributions in the form of tips, code snippets and suggestions for the above material are very welcome. To post a comment, please use the form below. Text is formatted by Markdown.

To post comments, please sign in to your DataTables account, or register:

Any questions posted here will be deleted without being published.
Please post questions in the Forums. Comments are moderated.