How to Use MenuButton in EasyUI

Source: Internet
Author: User

Procedure:
Html code:
Copy codeThe Code is as follows:
<A id = "a4" style = "color: # 0094ff" icon = "icon-lightning"> batch set column width </a>
<Div id = "cusmenu" style = "width: 150px;">
<Div id = "80"> 80px width </div>
<Div id = "100"> PX in width </div>
<Div id = "120"> 120px width </div>
<Div class = "menu-sep"> </div>
<Div iconCls = "icon-set2"> Custom column width </div>
</Div>

Js:
Copy codeThe Code is as follows:
// Initialization
Var ddlMenu = $ ('# a4'). menubutton ({menu: '# cusmenu '});
// Menubutton depends on the menu and linkbutton plug-ins, so we can fix it like this.
$ (DdlMenu. menubutton ('options'). menu). menu ({
OnClick: function (item ){
// For the properties of item, see menu in API
Alert (item. text );
}
})

Okay. This is today.

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.