EXT 2.0 learning controls

Source: Internet
Author: User

EXT is a framework based on ajax ui. It is mainly used as the UI and the designed form is very beautiful. Here we will not talk much about it. Let's look at the basic controls:

Demo1: panel control

 
Ext. onready (Function(){VaROBJ =NewExt. Panel ({width: 300, height: 200, items: [{Title :"P1", Height: 50 },{ title :"P2", Height: 50 },{ title :"P3", Height: 50}]}); obj. Render ("Cao");});
 
The effect is as follows:
 
 
 
Demo2: MessageBox Control
 
Code:
Ext. onready (Function() {Ext. MessageBox. Alert ("prompt ","This is one demo!");VaRWin =NewExt. Window ({Title: "prompt", width: 100, height: 110, HTML :"<Input type = 'text' value = 'cao 'name = 'mytext'>"}); Win. Show ();});
 
The effect is as follows:
 
 
 
Demo3: tabpanel Control
 
Code:
Ext. onready ( Function (){ VaR Tab = New Ext. tabpanel ({width: 300, height: 400, items :[ New Ext. Panel ({Title: "Panel 1 ", Height: 50, HTML :" <Input tyep = 'text' value = 'better tomorrow! '> "}), New Ext. Panel ({Title: "Panel 2 ", Height: 50, HTML :" <Input type = 'button 'name = 'myclick'> "}), New Ext. Panel ({Title: "Panel 3 ", Height: 50})]}); tab. Render (" Cao ");

 

The effect is as follows:

Here is a brief introduction. This web UI is quite good. Currently, this is used in some OA projects.

At present, I am not very familiar with this item. I can only introduce it to you with limited capabilities. Please wait for my next article.ArticleShow up

 

 
 

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.