Parameter | Type | Description |
---|---|---|
params | Object | |
node | String | DomNode |
Should the content be treated as a full html document, and the real content stripped of , wrapper before injection
The content to be placed in the node. Can be an HTML string, a node reference, or a enumerable list of nodes
Should the content be treated as a full html document,
and the real content stripped of <html> <body>
wrapper before injection
Should the node by passed to the parser after the new content is set
Flag passed to parser. Root for attribute names to search for. If scopeName is dojo, will search for data-dojo-type (or dojoType). For backwards compatibility reasons defaults to dojo._scopeName (which is "dojo" except when multi-version support is used, when it will be something like dojo16, dojo20, etc.)
Start the child widgets after parsing them. Only obeyed if parseContent is true.
runs the dojo parser over the node contents, storing any results in this.parseResults and the parse promise in this.parseDeferred Any errors resulting from parsing are passed to _onError for handling
front-end to the set-content sequence
Parameter | Type | Description |
---|---|---|
cont | String | DomNode | NodeList |
Optional An html string, node or enumerable list of nodes for insertion into the dom If not provided, the object's content property will be used |
params | Object |
Optional
|
manually reset the Setter instance if its being re-used for example for another set()
tearDown() is not called automatically. In normal use, the Setter instance properties are simply allowed to fall out of scope but the tearDown method can be called to explicitly reset this instance.
shows user the string that is returned by on[type]Error override/implement on[type]Error and return your own string to customize
Parameter | Type | Description |
---|---|---|
type | undefined | |
err | undefined | |
consoleText | undefined |
Called after instantiation, but before set(); It allows modification of any of the object properties - including the node and content provided - before the set operation actually takes place This default implementation checks for cleanContent and extractContent flags to optionally pre-process html string content
Called after set(), when the new content has been pushed into the node It provides an opportunity for post-processing before handing back the node to the caller This default implementation checks a parseContent flag to optionally run the dojo parser over the new content