datatables.net-staterestore-zf 2.1.1

dotnet add package datatables.net-staterestore-zf --version 2.1.1
                    
NuGet\Install-Package datatables.net-staterestore-zf -Version 2.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="datatables.net-staterestore-zf" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="datatables.net-staterestore-zf" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="datatables.net-staterestore-zf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add datatables.net-staterestore-zf --version 2.1.1
                    
#r "nuget: datatables.net-staterestore-zf, 2.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package datatables.net-staterestore-zf@2.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=datatables.net-staterestore-zf&version=2.1.1
                    
Install as a Cake Addin
#tool nuget:?package=datatables.net-staterestore-zf&version=2.1.1
                    
Install as a Cake Tool

StateRestore for DataTables with Foundation styling

StateRestore is a state management UI for DataTables. It allows users to create multiple table states which can be saved and then reloaded at any time. This is particularly useful for complex tables where specific views are common and the user might wish to toggle between states.

States can be saved locally, or for a more permanent part of your table's features, to a remote database via Ajax, which also provides the ability for users to share states.

For full information about StateRestore including its features and configuration option, please refer to the DataTables manual.

Installation

The easiest way to install any extension for for DataTables, including StateRestore, is with the download builder. With the download builder, you select the styling and aspects of DataTables suite that you want, and it will generate the packages / install commands for you to use.

The download builder includes options for direct loading with script and link tags, details for using a package manager such as npm and NuGet, or a download option if you wish to have the files locally.

NPM

Installation from NPM can be done with the datatables.net-staterestore-zf package:

npm install \
    datatables.net-zf \
    datatables.net-buttons-zf \
    datatables.net-staterestore-zf

Basic Usage

In its most simple case, you can enable StateRestore by simply setting stateRestore: true as an option in the DataTables initialisation.

import DataTable from 'datatables.net-zf';
import 'datatables.net-buttons-zf'
import 'datatables.net-staterestore-zf'

// Register DataTables Plus license key
DataTable.key('plus_....');

// Initialisation
new DataTable('#myTable', {
	layout: {
		topStart: {
			buttons: ['stateCreate', 'statesList', 'pageLength']
		}
	},
	stateRestore: true
});

Documentation / Support

License

This software is released under the DataTables Plus License. To use the software a license key must be applied - see DataTables Plus.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.1 82 9/25/2026
2.0.1 101 9/16/2026
2.0.0 108 9/11/2026
1.4.2 646 9/9/2025
1.4.1 787 4/11/2024
1.4.0 727 2/15/2024
1.3.0 687 7/4/2023
1.2.2 758 3/10/2023
1.2.1 834 2/3/2023
1.2.0 843 11/8/2022