Raster.setParent( element, parent [, replace] )

Removes an element from its current location in the DOM tree and inserts it as child a given parent element.

Parameters

Name Type   Description
element object DOM element to be relocated. This argument can be one of the following: a string containing the ID of a DOM element, a reference to a DOM element, or a Control object. An error will occur if this argument is null.
parent object The new parent for the relocated element. This argument can be one of the following: a string containing the ID of a DOM element, a reference to a DOM element, or a Control object. An error will occur if this argument is null.
replace boolean optional true removes any children nodes currently in the parent before inserting the element; false appends the element after any existing child nodes in the given parent (default).
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López