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