-
24 Mar 2011 7:25 AM #1
xtype store
xtype store
We wrote a very comprehensive application that relies heavily on ExtJS3; we are very close to deploying it (this is a in-house application) and we want to see about upgrading to extjs4, to use many of the new features. However, 95% of our app relies on stores and grids, which happen to be the 2 biggest things upgraded.
To get to the point, we use things like:
however it seems like store was removed from the xtype definitions, and Ext.reg was moved and/or removed.PHP Code:...
store: {
xtype: 'store',
....
}
...
Is it possible to use xtype: 'store', or define it to use be used like ext3 used to? The reason xtype: 'store' worked great for us was because we are going to be using the same store config, but with different data within the same space. So, for example, if I define it like... new Ext.data.Store(...), it will use the same store class throughout every instance of that class I am making, and the multiple stores need to have different data in them, but be configured the same.
-
25 Mar 2011 6:13 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
xtypes are still around but when you extend a component you use the alias config. eg:
Now you can use the xtype "myclasspanel". The alias has 2 parts that are delimited by the period, first part is the type of xtype and the second is the xtype. So here, the type is "widget" and xtype is "myclasspanel".Code:Ext.define("myClassPanel", { extend : "Ext.panel.Panel", alias : "widget.myclasspanel", ... });
Plugin example:
Here you can see the type is "plugin" and ptype is "myplugin".Code:Ext.define("MyPlugin", { extend : "Ext.AbstractPlugin", alias : "plugin.myplugin", ... });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Similar Threads
-
store xtype
By agentyikes in forum Sencha Touch 1.x: DiscussionReplies: 5Last Post: 15 Mar 2011, 6:30 PM -
store as xtype
By archmisha in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 14 Aug 2009, 6:51 AM -
[Resolved] Ext 3.0. this.store not work in bbar and my xtype
By Rafael in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 16 Apr 2009, 2:40 PM -
referring to grid store in xtype
By SunWuKung in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 21 Jan 2009, 5:16 AM


Reply With Quote