Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Include Page
sneak peek warning
sneak peek warning
Warning

This page is still incomplete.

Div
classapi-page

fluid.selfRender()

Section

Column
width70%

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 reRender.

fluid.render(node, tree, options);

Code Block

File name: Renderer.js

Parameters

Span
classborderless-table

node

(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

Span
classborderless-table

Object

A templates structure, suitable for a further call to fluid.reRender or fluid.renderTemplates

Column
width5%

Column