dw.experience
Class ComponentScriptContext
Object
dw.experience.ComponentScriptContext
 ======================
 PAGE DESIGNER BETA API
 ======================
 
This is the context that is handed over to the view and process function of the respective component type script.
     String : view( ComponentScriptContext context)
     void   : process( ComponentScriptContext context)
 
Properties
component  :  Component  (Read Only)
The component for which the corresponding component type script is currently executed.
componentRenderSettings  :  ComponentRenderSettings  (Read Only)
As components are implicitly rendered as part of their hosting region via PageMgr.renderRegion(Region, RegionRenderSettings) there is the possibility to define render settings for the region itself but also for its contained components. The latter will be provided here so you further set or refine them for your component as part of the process function, i.e. to drive the shape of the component wrapper element.
content  :  Map  (Read Only)
The content attributes of the component. Currently those are setup by the merchant using page designer and can be processed in your respective component type view and process function.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getComponent() : Component
Returns the component for which the corresponding component type script is currently executed.
getComponentRenderSettings() : ComponentRenderSettings
As components are implicitly rendered as part of their hosting region via PageMgr.renderRegion(Region, RegionRenderSettings) there is the possibility to define render settings for the region itself but also for its contained components.
getContent() : Map
Returns the content attributes of the component.
Methods inherited from class Object
Method Detail
getComponent
getComponent() : Component
Returns the component for which the corresponding component type script is currently executed.
Returns:
the currently rendered component

getComponentRenderSettings
getComponentRenderSettings() : ComponentRenderSettings
As components are implicitly rendered as part of their hosting region via PageMgr.renderRegion(Region, RegionRenderSettings) there is the possibility to define render settings for the region itself but also for its contained components. The latter will be provided here so you further set or refine them for your component as part of the process function, i.e. to drive the shape of the component wrapper element.
Returns:
the component render settings

getContent
getContent() : Map
Returns the content attributes of the component. Currently those are setup by the merchant using page designer and can be processed in your respective component type view and process function.
Returns:
content attributes of the component