MenuButton
Extend from $.fn.linkbutton.defaults. Override defaults with $.fn.menubutton.defaults.
The menubutton is the part of drop-down menu. It is associated with a linkbutton and menu. The linkbutton is displayed while the menu is hidden. When users click or move the mouse over the linkbutton, the menu will show to allow to click on it.
Dependencies
- menu
- linkbutton
Usage
Usually the menubutton is created declaratively from markup.
Create menubutton using javascript.
Properties
The properties extend from linkbutton, below is the added properties for menubutton.
| Name | Type | Description | Default |
|---|---|---|---|
| plain | boolean | True to show plain effect. | true |
| menu | string | A selector to create a corresponding menu. | null |
| duration | number | Defines duration time in milliseconds to show menu when hovering the button. | 100 |
Methods
| Name | Parameter | Description |
|---|---|---|
| options | none | Return the options object. |
| disable | none | Disable the menubutton. |
| enable | none | Enable the menubutton. |
| destroy | none | Destroy the menubutton. |