0 results found

tinymce.ui.SplitButton

Contribute to this page
Namespacetinymce.ui
ClassSplitButton
InheritanceSplitButton Button Control
SubclassesColorSplitButton

This class is used to create a split button. A button with a menu attached to it.

Example

Public Methods

MethodDefined By
SplitButton(id:String, s:Object, ed:Editor) : Constructs a new split button control instance.SplitButton
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
postRender():void : Post render handler.SplitButton
remove():void : Removes the control.Control
renderHTML():String : Renders the split button as a HTML string.SplitButton
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

Method details

SplitButton

public function SplitButton(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.

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.

renderHTML

public function renderHTML():String
Renders the split button as a HTML string. This method is much faster than using the DOM and when creating a whole toolbar with buttons it does make a lot of difference.

Returns
String - HTML for the split button control element.

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.