Ext's Layout 12 layouts

Source: Internet
Author: User

Valid values for layout are absolute,accordion,anchor,border,card,column,fit,form and table

1.absolute: Position the display in the container according to the given coordinates

2.accordion: Accordion effect, generally used in sidebar

Code Demo: Ext.onready (function () {

var panel=new ext.panel ({

Renderto: ' Paneldiv ',

Title: ' Container component ',

Layout: ' Accordion ',

WIDTH:500,

HEIGHT:200,

Layoutconfig:{animate:false},

items:[

{title: ' element 1 ', HTML: ' "}

{title: ' Element 2 ', HTML: ' "}

{title: ' Element 3 ', HTML: ' "}

]

}

);

});

3.anchor

(1) The component in the container needs to specify the width, can specify the width height in the anchor

(2) Anchor value is generally negative or a percentage, positive values are meaningless

(3) Anchor must be a string

4.border divides a container into five regions: East,south,west,north,center

5.card like the installation Wizard is a one-piece display

6.column sees a container as a column and then places a child element into the container

7.fit A child element fills the entire container (only one child element fills the container if there are multiple child elements)

8.form is a layout that is designed to manage input fields in a form

9.table layout child elements according to the normal table method, with Layoutconfig:{colume:3}, this will divide the parent container into 3 columns

Ext's Layout 12 layouts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.