View Full Version : Setting a custom state provider
28 Jun 2012, 8:38 AM
The ExtJS class documentation for Ext.state.Manager (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.state.Manager) says, "by default all components that are 'state aware' check this class for state information if you don't pass them a custom state provider". However, I've checked the Ext.state.Stateful (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.state.Stateful) mixin and various component classes, and I don't see any way to pass a custom state provider. I was expecting to find a "stateProvider" config option or something similar.
Is it even possible to set a custom state provider for certain components, like the documentation implies? If so, how do you do it?
28 Jun 2012, 12:48 PM
This may be of interest:
28 Jun 2012, 1:03 PM
Cool extension - thank you, Scott!
I should clarify my question a bit, though: I'm wondering how I can use a state provider for certain components that is different than the default one specified in Ext.state.Manager. That is, suppose I wanted to use the linked remote storage provider for certain components whose state is important to store on the server, but for all other components I want to use a default cookie-based provider that I pass to Ext.state.Manager. Is there a way to have separate components use separate state providers in this manner?
28 Jun 2012, 1:16 PM
You would have to RYO to support this. I have limited exposure in this area, so you may have to poke around a bit.
Powered by vBulletin® Version 4.1.5 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.