1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    landed is on a distinguished road

      0  

    Question Unanswered: Possible Bug

    Unanswered: Possible Bug


    I am not able to render any custom components using item fashion for example the following simple custom component class. Is this a bug.
    Code:
    Ext.define('App.view.markets.MyDataView', {   extend: 'Ext.Panel',
       xtype:'mypanel',
       html:'this is html'
    });
    Ext.create('App.view.markets.MyDataView',{	
    	html:'jaksgdkjahdkjahdkhaskjh'
    	});
    in the parent class how else can I create and render out this component I know of only item[{xtype:'mypanel'},{},{}]

    thanks - I have now tried a few different classes copied straigt from your docs and these also do not show. However any EXT classes DO work in the same way. Just my custom ones dont. And no errors.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    49
    Answers
    6
    Vote Rating
    0
    j.k is on a distinguished road

      0  

    Default


    Ext.create only creates an instances of the specified class, it does not automatically add that component anywhere.

    You're going to have to add that component by yourself for example by Ext.Viewport.add() or Panel#setItems()

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    landed is on a distinguished road

      0  

    Default


    So in the parent class am I doing

    item[
    {xtype:'customClass'}

    ]

    in the custom class I need something like ..

    this.add();

    but this doesnt exist in your docs anywhere I can see.

    Thanks for your help BTW

Thread Participants: 1

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