javascript - Sencha Touch 2: How to get (multiple) instances of a base class -
i got following classes on sencha web app:
baseclass
and aclass extends baseclass xtype aclass
and bclass extends baseclass xtype bclass
usually use ext.viewport.down('aclass') instance of class. question if there's way instances of baseclass?
thanks help!
ext.define('baseclass', { extend: 'ext.component', xtype: 'baseclass' }); ext.define('aclass', { extend: 'baseclass', xtype: 'aclass' }); ext.define('bclass', { extend: 'baseclass', xtype: 'bclass' }); var instances = ext.componentquery.query('baseclass')
will return array instances of aclass , bclass
Comments
Post a Comment