You are here

render

The render(...) methods generate a rendition from a specified node.

render(sourceNode, scriptRenditionDef)

render(sourceNode, renditionDefQName) this method uses a rendition definition to produce a rendition from a specified node.

Parameters

sourceNode
The node for which a rendition should be created
scriptRenditionDef
The ScriptRenditionDefinition object to use to render the rendition.

Returns

Returns the new rendition object (a ScriptNode) object.

render

render(sourceNode, renditionDefQName) this method uses a saved rendition definition to produce a rendition from a specified node.

Parameters

sourceNode
The node for which a rendition should be created
renditionDefQName
The qname of the rendition definition to use for example cm:doclib or {http://www.alfresco.org/model/content/1.0}imgpreview.

Returns

Returns the new rendition object (a ScriptNode) object.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.