JQueryEasyUI create simple menus and link buttons for menus and buttons _ jquery

Source: Internet
Author: User
This article describes how to create simple menus and link buttons for jQueryEasyUI menus and buttons. For more information, see

Menus are defined in some DIV tags as follows:

 

New

Open

Word

Excel

PowerPoint

Save

Exit

If the menu is not displayed after it is created, call the 'show 'method to display it or call the 'hide' method to hide it:

 $('#mm').menu('show', {  left: 200,  top: 100 });

Link Button)

GenerallyElement to create a Button, while the Link Button is created using an element. In fact, a Link Button is an element displayed as a Button style.

To create a Link Button, all you need to do is add a class attribute named 'easyui-linkbutton 'to the element:

Cancel Refresh Query text button Print

Cancel Refresh Query text button Print

As you can see, the iconCls attribute is the CSS class style of an icon, which displays an icon image on the button.

Sometimes you need to disable or enable the Link Button. The following Code demonstrates how to disable a Link Button ):

$(selector).linkbutton('disable'); // call the 'disable' method

Related Article

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.