Sha256: 8d8b0120ec78e68bb276b8778934cfdd29e40b391895d3060d4d7d029c9beaf3

Contents?: true

Size: 802 Bytes

Versions: 4

Compression:

Stored size: 802 Bytes

Contents

sap.ui.define([
		'jquery.sap.global',
		'sap/m/MessageToast',
		'sap/ui/core/Fragment',
		'sap/ui/core/mvc/Controller',
		'sap/ui/model/Filter',
		'sap/ui/model/odata/ODataModel'
	], function(jQuery, MessageToast, Fragment, Controller, Filter, ODataModel) {
	"use strict";
 
	var CController = Controller.extend("vibert.controller.MenuList", {
 
        onListItemPress: function(oEvent) { 
            // also possible: 
            // var oRouter = this.getOwnerComponent().getRouterFor(this); 
            var oRouter = sap.ui.core.UIComponent.getRouterFor(this); 
            var oItem = oEvent.getSource();
            var sToPageId = oEvent.getParameter("listItem").getCustomData()[0].getValue();
            oRouter.navTo( sToPageId );
        }
    }
);
 

        
	return CController;
 
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fiveapples-0.0.4 lib/ui5/controller/MenuList.controller.js
fiveapples-0.0.3 lib/ui5/controller/MenuList.controller.js
fiveapples-0.0.2 lib/ui5/controller/MenuList.controller.js
fiveapples-0.0.1 lib/ui5/controller/MenuList.controller.js