0 results found

tinymce.ui.MenuButton

Contribute to this page
Namespacetinymce.ui
ClassMenuButton
InheritanceMenuButton Control

This class is used to create a UI button. A button is basically a link that is styled to look like a button or icon.

Example

Public Methods

MethodDefined By
MenuButton(id:String, s:Object, ed:Editor) : Constructs a new split button control instance.MenuButton
destroy():void : Destroys the control will free any memory by removing event listeners etc.Control
hideMenu(e:Event):void : Hides the menu.MenuButton
isActive():Boolean : Returns true/false if the control is disabled or not.Control
isDisabled():Boolean : Returns true/false if the control is disabled or not.Control
isRendered():Boolean : Returns true/false if the control has been rendered or not.Control
postRender():void : Post render handler.MenuButton
remove():void : Removes the control.Control
renderHTML():String : Renders the control as a HTML string.Control
renderMenu():void : Renders the menu to the DOM.MenuButton
renderTo(n:Element):void : Renders the control to the specified container element.Control
setActive(s:Boolean):void : Sets the activated state for the control.Control
setDisabled(s:Boolean):void : Sets the disabled state for the control.Control
setState(c:String, s:Boolean):void : Sets the specified class state for the control.Control
showMenu():void : Shows the menu.MenuButton

Public Events

EventDefined By
onRenderMenu() : Fires when the menu is rendered.MenuButton

Method details

MenuButton

public function MenuButton(id:String, s:Object, ed:Editor)
Constructs a new split button control instance.

Parameters

ParamDetail
id:StringControl id for the split button.
s:ObjectOptional name/value settings object.
ed:EditorOptional the editor instance this button is for.

hideMenu

public function hideMenu(e:Event):void
Hides the menu. The optional event parameter is used to check where the event occured so it doesn't close them menu if it was a event inside the menu.

Parameters

ParamDetail
e:EventOptional event object.

postRender

public function postRender():void
Post render handler. This function will be called after the UI has been rendered so that events can be added.

renderMenu

public function renderMenu():void
Renders the menu to the DOM.

showMenu

public function showMenu():void
Shows the menu.

Event details

onRenderMenu

public event onRenderMenu()
Fires when the menu is rendered.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.