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.
Usually the menubutton is created declaratively from markup.
Create menubutton using javascript.
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 |
Name | Parameter | Description |
---|---|---|
options | none | Return the options object. |
disable | none | Disable the menubutton. |
enable | none | Enable the menubutton. |
destroy | none | Destroy the menubutton. |