fluid.render() Section |
---|
Column |
---|
| A simple driver for single node self-templating. Parses the source into a template structure, renders it using the supplied component tree and options, replaces the markup in the target node with the rendered markup, and finally performs any required data binding. Code Block |
---|
| javascript |
---|
| javascript |
---|
bgColor | white |
---|
borderStyle | none | javascript |
---|
|
fluid.render(source, target, tree, options);
|
File name: Renderer.js Parameters Span (Deprecated) |
---|
| source
| (Object or String) Either a structure {node: node, armouring: armourstyle } or a string holding a literal template. See the source section below for more information. | target
| (Node) The node to receive the rendered markup | tree
| (Object) The component tree to be rendered | options
| (Object) An options structure to configure the rendering and binding process. See the options section below for more information. |
|
Return Value |
| NotesThe source parameterThe source parameter can either be a string holding a literal template or an object with the following structure: Code Block |
---|
|
{
node: <DOM node>,
armouring: <boolean>
}
|
The properties in the object are:
Span (Deprecated) |
---|
| node
| This is a either a pure DOM node or a jQuery object wrapping a DOM node. | armouring
| This boolean flag controls whether or not the node is treated as ...? (default: false ) |
|
OptionsThe options parameter is an optional object containing key/value pairs that can configure how the Renderer works. Supported options are: Insert excerpt |
---|
| renderer Options |
---|
| renderer Options |
---|
nopanel | truerenderer Options |
---|
|
ExampleIn this example, description here... |