vegUI version 2.1.1 Selector |
vegui. selector. class.jsSummary
VUI_SELECTORVegUI element type for VegUISelector VegUISelectora widget that lets the user select a value by clicking two buttons (left and right) with a label in the middle Summary
Child Elements
flush
Clears the Items array and calls update_label go
Select either the next (right) or the previous (left) item .Calls VegUINode::onchange Parameters
See alsoExample
select_idx
Select an item using its index in the array, calls VegUINode::onchange Parameters
See alsoExample
select_value
Selects the first item with the requested value, calls VegUINode::onchange Parameters
See alsoExample
|
Constructor
function VegUISelector( refName, Parent, Manager )
Clears the Items array and calls update_label
this.flush = function()
Sets the text of the Label child to the currently selected item name
this.update_label = function()
Select either the next (right) or the previous (left) item .Calls VegUINode::onchange
this.go = function( dir )
Select an item using its index in the array, calls VegUINode::onchange
this.select_idx = function( idx )
Selects the first item with the requested value, calls VegUINode::onchange
this.select_value = function( value )
Sets the most common Template Properties of the selector
this.set = this.set_selector = function( w, h, x, y )
function VegUINode( refName, Parent, Manager )
Template Function
this.set = this.set_node = function( nodeType, w, h, x, y, pos, z )