Class pvr.controller.types._MockPropertyControllerMixin
Mix-in class for custom property controllers whose run-time data types cannot be supported in the view designer.
Some applications include the view designer and the view runtime in separate web applications. In such cases there may be value types that cannot be modeled in the designer component due to missing dependencies. In such cases, "mock" data types and their associated controllers can be used in the view designer as a proxy for their runtime counterparts. This is done by registering the mock controller class as the controllerClass for the particular data type in the view designer's integration configuration object.
Some applications may wish to add custom attributes to property controllers of all types. A recommended pattern for this includes the following steps.
- Extend the pvr.controller._PropertyController class to include the custom attributes.
- For each supported data type, extend the custom property controller class and mix in the
corresponding type-specific mix-in class, specifically the
pvr.controller.types._MockPropertyControllerMixin class for mock property controllers.
Defined in: <pvr\controller\types\mixins\_MockPropertyControllerMixin.js>.Constructor Summary
Constructor Attributes Constructor Name and Description