TinyMCE:API/tinymce.ui.Menu
From Moxiecode Documentation Wiki
Contents |
[edit]
Class: tinymce.ui.Menu extends tinymce.ui.MenuItem
This class is base class for all menu types like DropMenus etc. This class should not be instantiated directly other menu controls should inherit from this one.
[edit]
Methods
- add
- Adds a new menu, menu item or sub classes of them to the drop menu.
- addMenu
- Adds a sub menu to the menu.
- addSeparator
- Adds a menu separator between the menu items.
- collapse
- Collapses the menu, this will hide the menu and all menu items.
- createMenu
- Created a new sub menu for the menu control.
- expand
- Expands the menu, this will show them menu and all menu items.
- hasMenus
- Returns true/false if the menu has sub menus or not.
- isCollapsed
- Returns true/false if the menu has been collapsed or not.
- remove
- Removes a specific sub menu or menu item from the menu.
- removeAll
- Removes all menu items and sub menu items from the menu.
[edit]
Methods inherited from tinymce.ui.MenuItem
setSelected,isSelected,postRender,execCallback
[edit]
Methods inherited from tinymce.ui.Control
setDisabled,isDisabled,setActive,isActive,setState,isRendered,renderHTML,renderTo,postRender,destroy
