--- layout: compress --- TinyMCE | tinymce.ui.MenuItem
0 results found

tinymce.ui.MenuItem

Contribute to this page
Namespace tinymce.ui
Class MenuItem
Inheritance MenuItem Control
Subclasses Menu

This class is base class for all menu item types like DropMenus items etc. This class should not be instantiated directly other menu items should inherit from this one.

Public Methods

Method Defined By
MenuItem(id:String, s:Object) : Constructs a new button control instance. MenuItem
destroy():void : Destroys the control will free any memory by removing event listeners etc. Control
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
isSelected():Boolean : Returns true/false if the control is selected or not. MenuItem
postRender():void : Post render handler. MenuItem
remove():void : Removes the control. Control
renderHTML():String : Renders the control as a HTML string. Control
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
setSelected(s:Boolean):void : Sets the selected state for the control. MenuItem
setState(c:String, s:Boolean):void : Sets the specified class state for the control. Control

Method details

MenuItem

public function MenuItem(id:String, s:Object)
Constructs a new button control instance.

Parameters

Param Detail
id:String Button control id for the button.
s:Object Optional name/value settings object.

isSelected

public function isSelected():Boolean
Returns true/false if the control is selected or not.

Returns
Boolean - true/false if the control is selected or not.

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.

setSelected

public function setSelected(s:Boolean):void
Sets the selected state for the control. This will add CSS classes to the element that contains the control. So that it can be selected visually.

Parameters

Param Detail
s:Boolean Boolean state if the control should be selected or not.

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.