Sha256: 729aee688489c71d3810ffa9672dba6f6e203d760e2d148a49261dc8b3ac70f3

Contents?: true

Size: 805 Bytes

Versions: 2

Compression:

Stored size: 805 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

2 entries across 2 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~