-
Unanswered: How to override xtype config variables
Unanswered: How to override xtype config variables
Is it possible to override the default config in my custom xtype class when I create an instance of it in the items block of another class's config?
For example:
Code:
Ext.define('MyClass', {
xtype: 'myclass',
config: {
someConfig: 10,
}
});
Then I include an instance of this class as a component in another's class's items config block:
Code:
Ext.define('SomeOtherClass', {
extend: 'Ext.Panel',
config: {
items: [{
xtype: 'myclass',
someConfig: 15, // this override doesn't work!
config: {
someConfig: 20 // this override doesn't work either!
}
}]
}
});
I can't seem to get this to work but of course all of the default xtypes included with Sencha Touch allow this.
-
Nevermind, it's working now....
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us