-
19 Jul 2012 9:56 PM #1
Extend my own component
Extend my own component
If I hand-craft (*gasp*) my sencha files I can do something like this
foo.js
Ext.define('hash42.view.foo', {
extend: 'Ext.grid.Panel',
selType: 'rowmodel',
frame: false,
collapsible: true,
initComponent: function () {
this.addEvents('removeitem');
this.addEvents('additem');
this.addEvents('edititem');
[snip]
grid.js
Ext.define('hash42.view.user.Grid', {
extend: 'hash42.view.foo',
title: 'User List',
store: 'Users',
alias: 'widget.usergrid',
initComponent: function () {
this.columns = [
[snip]
I have 2 questions:
#1 in architect how can I get nested folders under the views ?
#2 in architect how can I extend a component other than the standard Ext ones ?
thanks
-
20 Jul 2012 12:43 AM #2
#1 in architect how can I get nested folders under the views ? => just name your views like subfolder.myview and the file will be generated in app/view/subfolder/myview.
The downside: it isn't visible in architect yet.
#2 in architect I don't think you can. Maybe if you export the component to a file, you can mess with the code and metadata manually..Import it back to architect. But not 100% shure that will work.
-
21 Jul 2012 10:03 AM #3
Aaron Conran
@aconran
Sencha Architect Development Team
-
21 Jul 2012 11:12 AM #4
thanks for the info.
Is there any timescales (or beta?) for the next "minor" version.
How about integrating the designer into eclipse
-
21 Jul 2012 9:53 PM #5
We've had an ongoing private beta. If you are interested in future betas (the current one is closed right now) you can apply here:
http://www.sencha.com/forum/showthre...n-request-form
The release will be going out once its been tested and vetted as stable.
We have nothing against you working with Architect and eclipse at the same time.Aaron Conran
@aconran
Sencha Architect Development Team
-
22 Jan 2013 9:47 AM #6
-
22 Jan 2013 10:03 AM #7
Yes, we're just stabilizing the build, getting docs together, etc etc
Aaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote