wcRenderContext.declare (id, refreshAreaIds, initialProperties)
The wcRenderContext.declare function declares a new refresh controller, associates it with the refreshAreaIds passed in and initializes it with the specified initialization properties. The initialization properties are in addition to the new refresh controller's properties. A refresh controller control refresh area widgets, and listens to changes in the render context and model and decides whether the registered refresh areas must be updated.
Example
wcRenderContext.declare("multipleShipmentDetailsContext", [], {shipmentDetailsArea: "update"}),
Parameters
- id
- (String) The unique ID of the new render context.
- refreshAreaIds
- (String) The unique IDs of the refresh area.
- initialProperties
- (Object) Contains any of the initialization parameters.