Interface sap.ui.core.mvc.View.PreprocessorModule: sap/ui/core/mvc/View


Interface for Preprocessor implementations that can be hooked in the view life cycle.

There are two possibilities to use the preprocessor. It can be either passed to the view via the mSettings.preprocessors object where it is the executed only for this instance, or by the registerPreprocessor method of the view type. Currently this is available only for XMLViews (as of version 1.30).


Since: 1.30.
Method Summary
sap.ui.core.mvc.View.Preprocessor.process(vSource, oViewInfo, mSettings?)Processing method that must be implemented by a Preprocessor.
Method Detail
sap.ui.core.mvc.View.Preprocessor.process(vSource, oViewInfo, mSettings?): object|Promise
Processing method that must be implemented by a Preprocessor.
Parameters:
{object}vSource the source to be processed
{object}oViewInfo identification information about the calling instance
{string}oViewInfo.id the id
{string}oViewInfo.name the name
{string}oViewInfo.componentId the id of the owning Component
{string}oViewInfo.caller identifies the caller of this preprocessor; basis for log or exception messages
{object}mSettings? settings object containing the settings provided with the preprocessor
Returns:
{object|Promise} the processed resource or a promise which resolves with the processed resource or an error according to the declared preprocessor sync capability