No nonsense ExtJs getting started tutorial 3 [Form: Window component]

Source: Internet
Author: User

1. The Code is as follows:

1 <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> 2 

2. The effect is as follows:

3. Commonly Used window components: properties, methods, and events

I. Attributes
Plain: boolean type. "true" indicates that the color must be consistent with the background color. The default value is false.
Resizable: boolean type, whether the user can adjust the size of the form. The default value is true, indicating that the size can be adjusted.
Maxinizable: boolean type. true indicates that the maximum button is displayed. The default value is false.
Maximized: boolean type. true indicates that the form is maximized when the form is displayed. The default value is false.
Closable: boolean type. true indicates that the close button is displayed. The default value is true.
BodyStyle: the spacing between the border and the border, for example, bodyStyle: "padding: 3px ".
ButtonAlign: Alignment of buttons (left, center, right) in the form. The default value is right.
CloseAction: "close" releases the memory occupied by the form, and "hide" hides the form. We recommend that you use "hide ".

Ii. Method
Show: Open the form.
Hide: hide a form.
Close: close the form.

Iii. Events
Show: Method of opening the form.
Hide: hide the method used to hide a form.
Close: method when the form is closed.

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.