RasterControl.setParent( parent [, replace] )

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


Name Type   Description
parent object The new parent for the this control's box. 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 child nodes currently in the parent before inserting this control; false appends this control's box to any existing child nodes in the given parent (default).


Type Description
object The control object. This allow for chaining multiple setter methods in one single statement.
Home Examples Download License
Copyright © 2010-2017 Edwin R. López