Click or drag to resize
StrandsScriptGeneratorGetCustomizedRendererScript Method
Returns code which registers custom rendering function and declaration of the rendering function. jQuery templates library has to be included in order for this code to work.

Namespace: CMS.StrandsRecommender.Web.UI
Assembly: CMS.StrandsRecommender.Web.UI (in CMS.StrandsRecommender.Web.UI.dll) Version: 11.0.0
Syntax
C#
public virtual string GetCustomizedRendererScript(
	string jQueryTransformation,
	string templateID,
	string placementID
)

Parameters

jQueryTransformation
Type: SystemString
Code of the transformation which will be used to render recommendation
templateID
Type: SystemString
ID of the Strands template which will be rendered using custom transformation (i.e. HOME-1)
placementID
Type: SystemString
Client ID of the element where transformation will be rendered

Return Value

Type: String
Generated JavaScript
Exceptions
ExceptionCondition
ArgumentNullExceptionjQueryTransformation, templateID or placementID is null
See Also