PDA

View Full Version : Should ExtJS classes appear in the JSB3 file?



nickelstar5
2 Mar 2012, 8:36 AM
I ran SDK version 1.2.2 and it found my own classes and placed them in the JSB3 file. However, it seemed from reading the documentation that some ExtJS files should also be in the JSB3 file but they aren't. If so, what might be keeping them from appearing?

mitchellsimoens
2 Mar 2012, 9:27 AM
If you have Ext JS class in the extend or any of the require properties it should.

nickelstar5
2 Mar 2012, 11:36 AM
That's what I thought. I'm trying to build a Touch mvc project designed in Sencha Designer 2. An example custom class follows. My CategoryController ends up in the JSB3 file but not the Controller. Any tips would be appreciated to get this working.


Ext.define('hitpromo.controller.CategoryController', {
extend: 'Ext.app.Controller',

config: {
refs: {
categoryList: 'categorycontainer #categoryList',
categoryCt: 'categorycontainer'
},

control: {
"categoryList": {
select: 'onListSelect'
},
"categoryCt": {
show: 'onContainerShow'
}
}
},

onListSelect: function(dataview, record, options) {
hitpromo.app.redirect('Subcategories/' + record.data.id);
dataview.deselectAll();
},

onContainerShow: function(component, options) {
this.getCategoryList().deselectAll();
}

});

John43
15 Sep 2012, 5:21 AM
Have you solved this problem. Did the controller classes get included in the .jsb3 file. If so how did you make it work ?


That's what I thought. I'm trying to build a Touch mvc project designed in Sencha Designer 2. An example custom class follows. My CategoryController ends up in the JSB3 file but not the Controller. Any tips would be appreciated to get this working.


Ext.define('hitpromo.controller.CategoryController', {
extend: 'Ext.app.Controller',

config: {
refs: {
categoryList: 'categorycontainer #categoryList',
categoryCt: 'categorycontainer'
},

control: {
"categoryList": {
select: 'onListSelect'
},
"categoryCt": {
show: 'onContainerShow'
}
}
},

onListSelect: function(dataview, record, options) {
hitpromo.app.redirect('Subcategories/' + record.data.id);
dataview.deselectAll();
},

onContainerShow: function(component, options) {
this.getCategoryList().deselectAll();
}

});