Core |
vegui. sk. std.jsSummary
vsk_html_node
Returns a new node Aliasvsk_h() Parameters
Returns
VSK_NodeSummary
move
Moves the node to a new position Parameters
Returns
trim
Removes an unspecified amount of child nodes from the beginning or end of the child nodes array of the controlled node until the defined length is reached Parameters
vsk_event_add
Adds a vsk specific event handler Parameters
Valid Events
Returns
Object Properties
VegUIDynFunc
Constructor Parameters
execute
Executes all the functions in the stack Parameters
Code exampleReturns
|
Returns VSK_Node object that controlls the submitted node
function v( node )
Returns VSK_node object that controls the node with the submitted id
function V( id )
Returns a new node
vsk_html_node = vsk_h = function( nodeName, className, parentNode, id )
Create and return a text node
vsk_txt_node = vsk_t = function( text, parentNode )
sets vskX and vskY to the current mouse coordinates
function vsk_get_mouse( e )
Returns the related target of a mouse event (cross browser support)
function vsk_rel_target( e )
Wrapper function for parseInt
function pi( str )
check if a value exists inside an array
function in_array( arr, value )
Returns a random number
function vsk_rand( min, max )
Returns the x position of the element relative to the document or a specified parent element
VSK_Node.prototype.abs_x = function( Parent )
Returns the y position of the element relative to the document or a specified parent element
VSK_Node.prototype.abs_y = function( Parent )
Removes all the child nodes of the node
VSK_Node.prototype.clear = function( node )
Takes control of another node
VSK_Node.prototype.control = function( node )
Appends node to the submitted node as a child
VSK_Node.prototype.dock = function( toNode )
Method set an event listener on the node (cross browser supported)
VSK_Node.prototype.event_add = function( eventName, func )
Sets the transparency of the node to the selected value
VSK_Node.prototype.fade = function( n )
Returns the height of the node
VSK_Node.prototype.h = function( o )
Check if a node is the parent of the controlled node somewhere down the parentNode list
VSK_Node.prototype.has_parent = function( parentNode )
Hides or shows the node
VSK_Node.prototype.hide = function( hide )
Append multiple nodes to this node as children
VSK_Node.prototype.html_append = function()
Inserts a html node after this html node
VSK_Node.prototype.html_insert_after = function()
Insert one or more html nodes before this node
VSK_Node.prototype.html_insert_before = function()
Moves the node to a new position
VSK_Node.prototype.move = function( x, y, x2, y2 )
Resizes the node
VSK_Node.prototype.resize = function( w, h )
Sets the css position of the node and the node’s z-index
VSK_Node.prototype.set_pos = function( pos, zIndex )
Returns the transparency of the node (in percent)
VSK_Node.prototype.t = function()
Removes an unspecified amount of child nodes from the beginning or end of the child nodes array of the controlled node until the defined length is reached
VSK_Node.prototype.trim = function( length, reverse )
Removes the node from its parentNode
VSK_Node.prototype.undock = function()
Checks if the node is hidden
VSK_Node.prototype.v = function()
Adds a vsk specific event handler
VSK_Node.prototype.vsk_event_add = function( name, func, id )
Triggers the event handler for a certain vsk event
VSK_Node.prototype.vsk_event_fire = function( name )
Remove a function from a specific vsk event handler by it’s unique function id
VSK_Node.prototype.vsk_event_unset = function( name, id )
Returns the width of the node
VSK_Node.prototype.w = function( o )
returns x position of the node
VSK_Node.prototype.x = function()
Returns the right x position of the node
VSK_Node.prototype.x2 = function()
returns y position of the node
VSK_Node.prototype.y = function()
Returns the y bottom position of the node
VSK_Node.prototype.y2 = function()
returns zindex of node
VSK_Node.prototype.z = function()
Constructor
function VegUIDynFunc( returnVal )
Adds a function to the stack
this.add = function( fn, id )
Executes all the functions in the stack
this.execute = function( argArr )
Free a unique function id effectivly removing the function linked to it from the stack
this.free = function( id )