This page provides a reference for the functions available for using the Renderer. Primary Renderer FunctionsselfRender Code Block |
---|
|
var templates = fluid.selfRender(node, tree, options);
|
Return: the original parsed template. A simple driver for single node self-templating. Treats the markup for a node as a template, parses it into a template structure, renders it using the supplied component tree and options, then replaces the markup in the node with the rendered markup, and finally performs any required data binding. The parsed template is returned for use with a further call to fluid.reRender() . ParametersnodeEither a raw DOM node in the current document, or else a JQuery object representing one. The markup in this node will be used as the template for rendering, and the node will be replaced with the rendered output. treeA Javascript Object representing a component tree. See Renderer Component Trees for more information. optionsA JavaScript object used to configure the details of the rendering process. Unlike options for most Fluid components, this structure sometimes has a bi-directional aspect - it can be used for returning information about the rendering process back to the client, as well as for receiving it. Here is a list of the supported fields and types within the Renderer options: |