vegUI version 2.1.1 Content Box |
vegui. cbox. class.jsSummary
VUI_CBOXvegUI element type for VegUIContentBox VegUIContentBoxA scrollable frame to display content in. Summary
Child ElementsThese elements are all accessable over this.[child_name] even though they may not all be direct children of this element
build_cbox
builds the content box private function Elements should always be build using the vegui manager VegUIManager::build_element, VegUIManager::build_elements Aliasbuild() Parameters
Returns
See Parentfill
Fills the Content child of the content box with an existing HTML node Parameters
Code exampleSee alsoExample
fill_remote
Fills the content child of the content box with the contents of a html file Requires
Parameters
NoteThe file needs to be on the same server as the page where the content box is located on is. The file’s contents will be added as innerHTML to the Content node so using HTML tags in the file is encouraged See alsoExample
update_bbox
Updates bounding box of the content child This function actually gets called automatically when the VegUINode::resize method is called on it. |
builds the content box
this.build = this.build_cbox = function( toNode )
Fills the Content child of the content box with an existing HTML node
this.fill = function( Node )
Fills the content child of the content box with the contents of a html file
this.fill_remote = function( path, ondone )
Handles key input on the element, this private function is called whenever a key is hit on the keyboard while the element is focused.
this.handle_key = this.handle_key_cbox = function()
Set the most common template properties for this element
this.set = this.set_cbox = function( w, h, x, y )
Updates bounding box of the content child
this.update_bbox = function()
builds a VegUIElement.
this.build_element = function( VegUIObj, toNode )
builds multiple vegUI elements, if the last argument submitted to the function is a HTML node then the element’s will be built as children of that node
this.build_elements = function()
build a HTML node from the template properties of this element.
this.build = this.build_node = function( toNode, takeNode )
initializes common VegUIBridge object that can be accessed by all spawned VegUIElements by accessing it over their Manager property
this.init_bridge = function()
Template Function
this.set = this.set_node = function( nodeType, w, h, x, y, pos, z )
resizes the HTML node controlled by this element
this.resize = function( w, h, noAlign )