Namespace | tinymce.ui |
Class | Control |
Subclasses | Button, Container, ListBox, MenuButton, MenuItem, Separator |
Method | Defined By |
---|---|
Control(id:String, s:Object)
Constructs a new control instance.
|
Control |
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 event.
|
Control |
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 |
setState(c:String, s:Boolean):void
Sets the specified class state for the control.
|
Control |
public
function Control(id:String, s:Object)
id:String | Control id. |
s:Object | Optional name/value settings object. |
public
function destroy():void
public
function isActive():Boolean
public
function isDisabled():Boolean
public
function isRendered():Boolean
public
function postRender():void
public
function remove():void
public
function renderHTML():String
public
function renderTo(n:Element):void
n:Element | HTML DOM element to add control to. |
public
function setActive(s:Boolean):void
s:Boolean | Boolean state if the control should be activated or not. |
public
function setDisabled(s:Boolean):void
s:Boolean | Boolean state if the control should be disabled or not. |
public
function setState(c:String, s:Boolean):void
c:String | Class name to add/remove depending on state. |
s:Boolean | True/false state if the class should be removed or added. |