namespace sap.ui.rta.service.ControllerExtension

Visiblity: restricted
Available since: N/A
Module: sap/ui/rta/service/ControllerExtension
Application Component: CA-UI5-FL-RTA

Provides functionality to create ControllerExtensions.


Nodes Overview

Node Description

Methods Overview

Method Description
sap.ui.rta.service.ControllerExtension.add

Creates a change that adds an extension to the controller associated with the given view. Throws an error if the information is not complete. As of now, this only creates the change with a reference to a file. The consumer has to take care of creating that file and adding it to the backend.

sap.ui.rta.service.ControllerExtension.getTemplate

Gets the controller extension template from the DesignTimeMetadata of the given view and returns it as a string wrapped in a promise. If there is no template specified, a default template will be returned.

sap.ui.rta.service.ControllerExtension.add

Creates a change that adds an extension to the controller associated with the given view. Throws an error if the information is not complete. As of now, this only creates the change with a reference to a file. The consumer has to take care of creating that file and adding it to the backend.

Param Type DefaultValue Description
sCodeRef string

Name of the file, without path, with the extension .js. Must comply to UI5 module naming convention. Has to be unique and must not conflict with other already defined modules.

sViewId string

ID of the view whose controller should be extended

sap.ui.rta.service.ControllerExtension.getTemplate

Gets the controller extension template from the DesignTimeMetadata of the given view and returns it as a string wrapped in a promise. If there is no template specified, a default template will be returned.

Param Type DefaultValue Description
sViewId string

ID of the view whose template should be retrieved