| Namespace | tinymce.ui |
| Class | ListBox |
| Inheritance | ListBox Control |
| Subclasses | NativeListBox |
| Property | Defined By |
|---|---|
|
items : Array
Array of ListBox items.
|
ListBox |
| Method | Defined By |
|---|---|
|
ListBox(id:String, s:Object)
Constructs a new listbox control instance.
|
ListBox |
|
add(n:String, v:String, o:Object):void
Adds a option item to the list box.
|
ListBox |
|
destroy():void
Destroys the ListBox i.
|
ListBox |
|
getLength(Number:Number):void
Returns the number of items inside the list box.
|
ListBox |
|
hideMenu():void
Hides the drop menu.
|
ListBox |
|
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.
|
ListBox |
|
remove():void
Removes the control.
|
Control |
|
renderHTML():String
Renders the list box as a HTML string.
|
ListBox |
|
renderMenu():void
Renders the menu to the DOM.
|
ListBox |
|
renderTo(n:Element):void
Renders the control to the specified container element.
|
Control |
|
select(va:String/function):void
Selects a item/option by value.
|
ListBox |
|
selectByIndex(idx:String):void
Selects a item/option by index.
|
ListBox |
|
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
Displays the drop menu with all items.
|
ListBox |
| Event | Defined By |
|---|---|
|
onAdd()
Fires when a new item is added.
|
ListBox |
|
onChange()
Fires when the selection has been changed.
|
ListBox |
|
Fires after the element has been rendered to DOM.
|
ListBox |
|
Fires when the menu gets rendered.
|
ListBox |
public items : Array
public
function ListBox(id:String, s:Object)
| id:String | Control id for the list box. |
| s:Object | Optional name/value settings object. |
public
function add(n:String, v:String, o:Object):void
| n:String | Title for the new option. |
| v:String | Value for the new option. |
| o:Object | Optional object with settings like for example class. |
public
function destroy():void
public
function getLength(Number:Number):void
| Number:Number | of items inside the list box. |
public
function hideMenu():void
public
function postRender():void
public
function renderHTML():String
public
function renderMenu():void
public
function select(va:String/function):void
| va:String/function | Value to look for inside the list box or a function selector. |
public
function selectByIndex(idx:String):void
| idx:String | Index to select, pass -1 to select menu/title of select box. |
public
function showMenu():void
public
event onAdd()
public
event onChange()
public
event onPostRender()
public
event onRenderMenu()