Coolite (6): common controls such as accordion, toolbar, and tooltip

Source: Internet
Author: User
I,AccordionWidget
Accordion is very useful and easy to use. You can easily build a foldable Interface Displays the application results. I believe most of my friends who develop ASP. NET have used ASP. NET Ajax control. Toolkit It also provides the accordion control. You can view its online example in detail. The use of the accordion control provided by colite toolkit is not much different from that provided by ASP. NET Ajax Control Toolkit. Coolite The toolkit control must be placed in a container control (for example: Panel ).
<Ext: Panel id = "Panel1" runat = "server" Height = "300" Title = "System Menu "Width =" 200 ">
<Body>
<Ext: accordion id = "accordion1" runat = "server" animate = "true">
<Ext: Panel id = "basepanel" runat = "server" border = "false" Title = "Basic settings">
<Body>
</Body>
</Ext: Panel>
<Ext: Panel id = "accountpanel" runat = "server" border = "false" collapsed = "true" Title = "">
<Body>
<Div style = "margin-left: 50px;">
<Ul style = "float: Left;">
<Li> new set of books </LI>
<Li> maintain the set of accounts </LI>
<Li> set of books </LI>
<Li> set of books restored </LI>
</Ul>
</Div>
</Body>
</Ext: Panel>
<Ext: Panel id = "userpanel" runat = "server" border = "false" collapsed = "true" Title = "user management">
<Body>
</Body>
</Ext: Panel>
</Ext: accordion>
</Body>
</Ext: Panel>

The result is as follows. This interface is much better than accordion in ASP. NET Ajax Control Toolkit.

Go all by yourselfDefinitionThe menu items in it seem very troublesome. You can use the previousArticleDescribed inMenuPanel to achieve, personal feeling better, more convenient and fast.

<Ext: accordion id = "accordion1" runat = "server" animate = "true">
<Ext: Menupanel Id = "menupanel1" runat = "server" Title = "set of books">
<Menu id = "menu2" runat = "server">
<Items>
<Ext: menuitem text = "new set of books" href = "#" icon = Add/>
<Ext: menuitem text = "maintain the set of books" href = "#" icon = "cmy"/>
<Ext: menuitem text = "set of books backup" href = "#" icon = databasesave/>
<Ext: menuitem text = "set of books" href = "#" icon = "databasego"/>
</Items>
</Menu>
</Ext: menupanel>
<Ext: Panel id = "accountpanel" runat = "server" border = "false" collapsed = "true" Title = "">
<Body>
<Div style = "margin-left: 50px;">
<Ul style = "float: Left;">
<Li> new set of books </LI>
<Li> maintain the set of accounts </LI>
<Li> set of books </LI>
<Li> set of books restored </LI>
</Ul>
</Div>
</Body>
</Ext: Panel>
<Ext: Panel id = "userpanel" runat = "server" border = "false" collapsed = "true" Title = "user management">
<Body>
</Body>
</Ext: Panel>
</Ext: accordion>

AboutObtainFor more information about the parameters, see this series.NotesArticle 4.

2. toolbar and tooltip controls
The toolbar is everywhere. In our project development, the toolbar and Dynamic Tooltip to facilitate user operations.
<Ext: toolbar id = "toolbar1" runat = "server" width = "300">
<Items>
<Ext: Toolbar Button Id = "btnadd" text = "add" icon = "useradd">
<Tooltips>
<Ext: tooltip id = "tooltip1" html = "new user" runat = "server"/>
</Tooltips>
</Ext: toolbarbutton>
<Ext: toolbarbutton id = "btnedit" text = "edit" icon = "useredit" enabled = "false"/>
<Ext: toolbarbutton id = "btndelete" text = "delete" icon = "userdelete" enabled = "false"/>
<Ext: toolbarseparator runat = "server"/>
<Ext: toolbarbutton id = "btnrefresh" text = "click New" icon = "reload" enabled = "false"/>
<Ext: toolbarseparator runat = "server"/>
<Ext: toolbarbutton id = "tbsave" text = "save" icon = "accept"/>
<Ext: toolbarbutton id = "tbcancel" text = "Remove" icon = "cancel"/>
</Items>
</Ext: toolbar>

The Toolbar Control of The coolite toolkit is very powerful. In addition to implementing the most basic toolbar above, you can also design more powerful functions. Accurately speaking, the coolite toolkit provides many function extensions for many controls. Tree And menu.
<Ext: toolbar id = "toolbar2" runat = "server" width = "300">
<Items>
<Ext: toolbarbutton runat = "server" text = "drop-down menu" icon = "arrowdown">
<Menu>
<Ext: menu id = "menu1" runat = "server">
<Items>
<Ext: menuitem id = "menuitem1" runat = "server" text = "">
<Menu>
<Ext: menu runat = "server">
<Items>
<Ext: menuitem text = "" href = "http://www.cnblogs.com"/>
<Ext: menuitem text = "beniao" href = "http://beniao.cnblogs.com"/>
</Items>
</Ext: menu>
</Menu>
</Ext: menuitem>
<Ext: menuseparator runat = "server"/>
<Ext: menuitem id = "menuitem2" runat = "server" text = "select date" icon = "calendar">
<Menu>
<Ext: datemenu id = "datemenu1" runat = "server">
<Picker id = "picker1" runat = "server">
<Listeners>
</Listeners>
</Picker>
</Ext: datemenu>
</Menu>
</Ext: menuitem>
</Items>
</Ext: menu>
</Menu>
</Ext: toolbarbutton>
<Ext: toolbarbutton text = "" runat = "server" icon = "applicationhome"/>
</Items>
</Ext: toolbar>

Note: The content of this article can be found on the official website.DocumentAnd the example.LearningNotes for everyone to share their learning experiences.

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.