1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    UK
    Posts
    56
    Vote Rating
    0
    jmls is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Boom, Belgium
    Posts
    85
    Vote Rating
    9
    VDP will become famous soon enough

      0  

    Default


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

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quote Originally Posted by jmls View Post
    #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 ?
    #1 was answered by VDP.

    #2 This functionality will be coming in the next minor version of Architect. You can add any arbitrary class inside your controller, view, store or model directory and then choose what to extend from.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  4. #4
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    UK
    Posts
    56
    Vote Rating
    0
    jmls is on a distinguished road

      0  

    Default


    thanks for the info.

    Is there any timescales (or beta?) for the next "minor" version.

    How about integrating the designer into eclipse

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quote Originally Posted by jmls View Post
    Is there any timescales (or beta?) for the next "minor" version.
    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.

    Quote Originally Posted by jmls View Post
    How about integrating the designer into eclipse
    We have nothing against you working with Architect and eclipse at the same time.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    277
    Vote Rating
    11
    worthlutz is on a distinguished road

      0  

    Default


    Quote Originally Posted by aconran View Post

    #2 This functionality will be coming in the next minor version of Architect. You can add any arbitrary class inside your controller, view, store or model directory and then choose what to extend from.

    Coming soon????

    Worth

  7. #7
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Yes, we're just stabilizing the build, getting docs together, etc etc
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 3