Javascript for Episerver 7.5 cms

RenderManager (constructor)

Summary

This class manages content blocks server rendering. It provides a cache to avoid redundant server calls.

Location

epi-cms/contentediting/RenderManager

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_queue

_rendererPool

Cache of renderer objects

_viewSettingsToCopy

concurrentProcessedItems

Maximum number of items that can be rendered at the same time

defaultRenderer

Instance of the default renderer class

numberOfItemsInQueue

Number of items queued to be rendered

numberOfItemsRendering

Number of items being rendered

processInterval

How often (in milliseconds) should we check the queue to see if there's any items to be rendered

processQueueOnRenderValue

Set this to true to start rendering automatically after calling renderValue

rendering

Set to true while we're rendering items

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public method _getRenderer ( rendererClassName )

Parameters

public method _getRenderHash ( propertyName , renderSettings )

Parameters

public method _nextItemToProcessIndex ( )


public method _processItemInQueue ( index )

Parameters

public method _queueIndex ( renderer , contentLink , propertyName , renderSettings , value )

Parameters

public method _queueItem ( renderer , contentLink , propertyName , renderSettings , value )

Add or update rendering item

Parameters

public method _startRenderingInterval ( )


public method _stopRenderingInterval ( )


public method cacheRender ( propertyName , renderSettings , value , content )

Explicitly update the internal cache with the rendered content for a block.

Parameters

public method clear ( )


public method cloneAndCompleteRenderSettings ( renderSettings )

Clones the supplied renderSettings and adds settings from the ViewSettingsManager.

Parameters

public method constructor ( params )

Parameters

public method destroy ( )


public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public method postscript ( )


public method processQueue ( )

Process the queue.


public method renderValue ( contentLink , propertyName , value , renderSettings , rendererClassName )

Get block render for a content model's node, supplying its value.

Parameters

public method resume ( )

Resume render manager.


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public method suspend ( )

Suspend the render manager.


public method updateRenderSettings ( renderSettings , newItem , key , isTagItem )

Add new items to the renderSettings.

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters