NotFound.controller.js 400 B

12345678910111213141516
  1. sap.ui.define([
  2. "./BaseController"
  3. ], function (BaseController) {
  4. "use strict";
  5. return BaseController.extend("sap.ui.demo.orderbrowser.controller.NotFound", {
  6. onInit: function () {
  7. this.getRouter().getTarget("notFound").attachDisplay(this._onNotFoundDisplayed, this);
  8. },
  9. _onNotFoundDisplayed : function () {
  10. this.getModel("appView").setProperty("/layout", "OneColumn");
  11. }
  12. });
  13. });