UNPKG

ui5_easy_use

Version:

CLI tool for SAP ui5 and SAPUI5 projects to initialize apps, generate pages, insert form and table components, manage routing, and automate i18n bindings

25 lines (19 loc) 635 B
sap.ui.define([ "sap/ui/core/mvc/Controller" ], function (Controller) { "use strict"; return Controller.extend("${ez5.appName}.controller.${ez5.controllerName}", { onInit: function () { }, handleActionPress: function () { }, _resolveNavigationId: function (oEvent) { const context = oEvent?.getSource?.().getBindingContext?.(); const object = context?.getObject?.(); if (object && (object.id || object.ID || object.Id)) { return object.id || object.ID || object.Id; } return "0"; } }); });