stateRestore.states().details()

Since: StateRestore 2.0.0

Get the details for the selected states.
Please note - this property requires the StateRestore extension for DataTables.

Description

This method can be used to get the details of all selected states. The objects in the returned data set are of type StateRestore.State.

As with stateRestore.state().details(), please note that mutating the state object is not currently supported - don't write values to it as there is no API to tell StateRestore that they have changed. The objects in the result set are considered to be read-only.

Type

stateRestore.states().details()

Get a list of the selected states.

Returns:

DataTable.Api: Returns a DataTables API for chaining which contains objects of type StateRestore.State.

Example

Print out the details for two selected states:

console.log(
	table.stateRestore.states(['{id1}', '{id2}']).details().toArray();
);

Related

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