Results 1 to 2 of 2

Thread: xtype store

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2011
    Vote Rating

    Default 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:
    PHP Code:
    store: {
    however it seems like store was removed from the xtype definitions, and Ext.reg was moved and/or removed.

    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, 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.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    xtypes are still around but when you extend a component you use the alias config. eg:

    Ext.define("myClassPanel", {
        extend : "Ext.panel.Panel",
        alias  : "widget.myclasspanel",
    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".

    Plugin example:

    Ext.define("MyPlugin", {
        extend : "Ext.AbstractPlugin",
        alias  : "plugin.myplugin",
    Here you can see the type is "plugin" and ptype is "myplugin".
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Similar Threads

  1. store xtype
    By agentyikes in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 6 Sep 2013, 2:20 PM
  2. store as xtype
    By archmisha in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 14 Aug 2009, 6:51 AM
  3. [Resolved] Ext 3.0. not work in bbar and my xtype
    By Rafael in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 16 Apr 2009, 2:40 PM
  4. referring to grid store in xtype
    By SunWuKung in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 21 Jan 2009, 5:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts