Package: | Ext.state |
Defined In: | StateManager.js |
Class: | Manager |
Extends: | Object |
// in your initialization function
init : function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
var win = new Window(...);
win.restoreState();
}
Method | Defined By | |
---|---|---|
clear( String name ) : void Clears a value from the state Clears a value from the state Parameters:
| Manager | |
get( String name, Mixed defaultValue ) : Mixed Returns the current value for a key Returns the current value for a key Parameters:
| Manager | |
getProvider() : Provider Gets the currently configured state provider Gets the currently configured state provider Parameters:
| Manager | |
set( String name, Mixed value ) : void Sets the value for a key Sets the value for a key Parameters:
| Manager | |
setProvider( Provider stateProvider ) : void Configures the default state provider for your application Configures the default state provider for your application Parameters:
| Manager |