@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
28 lines (21 loc) • 676 B
JavaScript
// eslint-disable-next-line no-undef
sap.ui.define([
"sap/ui/demo/nav/controller/BaseController"
], function (BaseController) {
"use strict";
return BaseController.extend("sap.ui.demo.nav.controller.Home", {
onDisplayNotFound : function () {
// display the "notFound" target without changing the hash
this.getRouter().getTargets().display("notFound", {
fromTarget : "home"
});
},
onNavToEmployees : function () {
this.getRouter().navTo("employeeList");
},
// eslint-disable-next-line no-unused-vars
onNavToEmployeeOverview : function (oEvent) {
this.getRouter().navTo("employeeOverview");
}
});
});