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 )
:
voidClears a value from the state Clears a value from the state Parameters:
| Manager | |
get( String name , Mixed defaultValue )
:
MixedReturns 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 )
:
voidSets the value for a key Sets the value for a key Parameters:
| Manager | |
setProvider( Provider stateProvider )
:
voidConfigures the default state provider for your application Configures the default state provider for your application Parameters:
| Manager |