vegUI version 2.1.1 Checkbox |
vegui. checkbox. class.jsSummary
VUI_CHECKBOXVegUI element type for VegUICheckBox VegUICheckBoxThe checkbox widget Summary
build_cb
Builds the checkbox private function You should always use the VegUIManager::build_element function to build elements. Aliasbuild() Parameters
Returns
See alsoset_cb
Sets the most common template properties for the checkbox Aliasset() Parameters
See alsoExamplemyCheckBox.set(5,5,150,20,'Enable Something!',false,'cb_checked','ch_unchecked'); tgl_check
Toggles checkbox to be checked or unchecked Parameters
Example
|
Constructor
function VegUICheckBox( refName, Parent, Manager )
Builds the checkbox
this.build = this.build_cb = function( toNode )
Sets the most common template properties for the checkbox
this.set = this.set_cb = function( x, y, w, h, label, checked, cClass, ucClass )
Toggles checkbox to be checked or unchecked
this.tgl_check = function( b, noOnChange )
function VegUINode( refName, Parent, Manager )
builds a VegUIElement.
this.build_element = function( VegUIObj, toNode )
build a HTML node from the template properties of this element.
this.build = this.build_node = function( toNode, takeNode )
Template Function
this.set = this.set_node = function( nodeType, w, h, x, y, pos, z )