Provides functionality to create ControllerExtensions
.
Node | Description |
---|
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 |
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 |
|
sViewId | string |
ID of the view whose controller should be extended |
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 |