Extjs4.0 -- layout Introduction

Source: Internet
Author: User

Layout of Extjs4.0:

1: Fit Layout

The child element automatically fills the entire parent container. Note that in its layout, setting bandwidth for the child element is invalid. If multiple components are placed in the Fit layout, the first element is displayed intelligently.

The most typical use is to place a grid component in a window or panel so that the size of the grid component changes with the size of the parent container.

2: border Layout

I think the general framework layout is used for layout.

The border layout is also a boundary layout. It divides the page into five parts: west, east, south, north, and center. They can assign values to the participating region.

Only the height, west, and east can be set in north and south.

Center automatic change

Parameter: spit: true. You can manually adjust the size of the four regions.

Parameter: collapsible: true: the folding function is activated, and the title must be set, because the folding button appears in the title section.

Note: the center part is required, and the center area cannot be folded. Center automatically fills in other areas. If no center exists, an error is reported.

3: Accordion Layout

The according layout is also called the accordion layout. In the accordion layout, only one panel is active at any time.

Each page can be expanded and collapsed.

Note: Only Ext. Panels and all Ext. panel. Panel subitems can use accordion layout.

4: Card Layout

This layout is used to manage multiple child components, and only one child component can be displayed at any time. The most common situation of this layout is the wizard mode, which is what we call distribution submission.

5: Anchor Layout

The anchor layout is a component that is fixed at a certain position of the parent container. When the child component size of the anchor layout is used relative to the container size, that is, when the size of the parent container changes, the component with anchor layout will re-render the position and size according to the specified rules.

6: AnchorLayout Layout

7: Absolute Layout

8: Column Layout


Author: junmoxie

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.