What components can be defined within items?

  • I found from the API that each item can be any type of object based on Ext.Component (http://www.extjs.com/deploy/dev/docs/output/Ext.Component.html).
    Just like the example below ,
    What component has it be defined in the items?
    And what config parameters can I use to define the component?
    there are xType, region , split .... but actually where can I find the whole set of config parameters?



    new Ext.Viewport({
    .....
    items: [{
    xtype: 'box',
    region: 'north',
    applyTo: 'header',
    height: 30
    },{
    layout: 'border',
    id: 'layout-browser',
    region:'west',
    border: false,
    split:true,
    margins: '2 0 5 5',
    width: 275,
    minSize: 100,
    maxSize: 500,
    items: [treePanel, detailsPanel]
    },
    ...
    });

    THanks a lot !


  • as before,

    I can't find any config param like split, region, margin in the Ext.Component API ..
    Where are they being defined?

    As mentioned in the previous example ,
    inside the items, one of the components is defined as
    {
    layout: 'border',
    id: 'layout-browser',
    region:'west',
    border: false,
    split:true,
    margins: '2 0 5 5',
    width: 275,
    minSize: 100,
    maxSize: 500,
    }
    what kind of component does it belong to?

    Thanks a lot!


  • For some components, you can also specify options for their layouts in the definition for the component itself:

    http://extjs.com/deploy/ext-2.1/docs/?class=Ext.layout.BorderLayout.SplitRegion


  • thanks a lot !
    but I still can't find the "region" config param . Where can I find it in API ?


  • since it is the child of a panel with layout of 'border', checking the API docs for a 'borderLayout' in the layout section might be a start.


  • As you've said, you can use anything that extends component.

    All of the information you're looking for is in the documentation.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about What components can be defined within items? , Please add it free.