1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    9
    Vote Rating
    0
    kash22 is on a distinguished road

      0  

    Default understanding components

    understanding components


    Questions about "complex layout" example in 2.0

    Why is it that in the Items array (in the Viewport constructor) we instantiate some components but for others, we just list the config object for the component? (ex. 1st comp. is instantiated and 2nd is not)

    How does Viewport constructor know what is the componant based on the config. object listed in the 2nd element of the Items array?

    I

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    80
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    the default for the viewport is Ext.panel

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Bah
    Posts
    434
    Vote Rating
    0
    efege is on a distinguished road

      0  

    Default


    The Ext 2 Overview has a section on components and their xtypes that may help you understand better this topic, specially the concept of deferred object creation and rendering.

    Also, there's the defaultType config property for Ext.Container, which defaults to 'panel'. That means that all the subclasses of Container (e.g. Viewport) assume that a config object with no xtype specified must be considered an Ext.Panel.
    Fernando G

  4. #4
    Ext User santosh.rajan's Avatar
    Join Date
    Sep 2007
    Location
    Kannur, Kerala, India
    Posts
    611
    Vote Rating
    0
    santosh.rajan is on a distinguished road

      0  

    Default


    In items you can have either a component object or the config of an object. Ext will figure it out. If you are passing a config then you can specify an xtype telling what type of component it is. eg. xtype:'tabpanel' for example. If you dont specify xtype default is as mentioned above. To see a list of xtype's see the docs for Ext.Component.

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..." hd porno faketaxi