1. #1
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    89
    Vote Rating
    0
    xun is an unknown quantity at this point

      0  

    Default Unanswered: Extend a form.panel component?

    Unanswered: Extend a form.panel component?


    I found a strange thing about a custom component that extending a form panel, a dummy component would be as the following

    Ext.define('Dummy', {
    extend: 'Ext.form.Panel',
    border: false,


    items: [],
    defaults: {
    border: 0
    },

    initComponent: function () {
    var me = this;
    me.items.push({ html: 'to', style: "width:20px;padding:5px" });


    me.callParent();


    }
    }

    Now try to create the dummy component in another panel twice, as the following


    var item1 = Ext.create('Dummy', {
    });


    var item2 = Ext.create('Dummy', {
    });
    this.items = [item1, item2];

    Instead of 2 form panels with their respective items, the second panel somehow grabs the items from the first form panel and add them to itself.

    Why?

    What is the proper way to extend from panel?

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    89
    Vote Rating
    0
    xun is an unknown quantity at this point

      0  

    Default


    Found my mistake.

    Should not be

    me.items.push(...).

    rather, should be simply
    me.items = [];

    thanks anyway

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."