RasterControl.setContent( src [, replace] )

Replaces or appends content to this control. The given src element or control object will be relocated from its current location in the DOM tree into this control's content area.


Name Type   Description
src value One of the following: a string containing the ID of a DOM element, a reference to a DOM element, or another control object.
replace boolean optional true removes any child nodes currently in the parent before inserting this control (default); false appends this control's box to any existing child nodes in the given parent.


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