Learn ExtJS border Layout

Source: Internet
Author: User

1. Border layout is defined by Ext. layout. BorderLayout. The layout name is border. This layout divides the container into five areas in the Southeast and northwest, which are represented by east, south, west, north, and cente respectively. When adding sub-elements to the container, we only need to specify the location of these child elements. The Border layout will automatically place the child elements to the location specified by the layout.
II. Application Example
Copy codeThe Code is as follows:
Ext. onReady (function (){
New Ext. Viewport ({
Layout: "border ",
Items: [{region: "north ",
Height: 50,
Title: "top panel "},
{Region: "south ",
Height: 50,
Title: "bottom panel "},
{Region: "center ",
Title: "central panel "},
{Region: "west ",
Width: 100,
Title: "left panel "},
{Region: "east ",
Width: 100,
Title: "right panel "}
]
});
});

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.