Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Menu and Button Plugin - Menubutton

jQuery EasyUI Menu and Button Plugin - Menubutton


jQuery EasyUI Plugins jQuery EasyUI Plugins


Extends $.fn.linkbutton.defaults. Override the defaults through $.fn.menubutton.defaults.

A menubutton is part of a dropdown menu. It is related to the linkbutton and the menu. The linkbutton is shown while the menu is hidden. When the user clicks or moves the mouse over the linkbutton, the menu is displayed to allow the user to click it.

Depends on

Usage

Typically, a menubutton is created declaratively from markup.



Edit

Undo
Redo
Cut
Copy
Paste
Delete
Select All

Create a menubutton using JavaScript.



Edit

...


$('#mb').menubutton({

    iconCls: 'icon-edit',

    menu: '#mm'

});

property

This property extends the linkbutton; the following are properties added by the menubutton.

Name Type Description Default value
plain boolean If set to true, a simple effect is shown. true
menu string The selector used to create the corresponding menu. null
duration number The duration, in milliseconds, for displaying the menu when hovering over the button. 100

Method

This method inherits from the linkbutton; the following are methods added or overridden by the menubutton.

Name Parameters Description
options none Return the options object.
disable none Disables the menubutton.
enable none Enables the menubutton.
destroy none Destroys the menubutton.

jQuery EasyUI Plugins jQuery EasyUI Plugins