0
点赞
收藏
分享

微信扫一扫

sap-ui5 walkthrough step6 Modules

泠之屋 2022-01-13 阅读 47
sapui

call the message toast from sap.m library

and add the new module SAP/M/MSGTOAST

pass it to the constructor

then get rid of the alert

and put MT show(text)

App.contorller.js

sap.ui.define([

    "sap/ui/core/mvc/Controller",

    "sap/m/MessageToast"

],function(Controller,MessageToast){

    "use strict"

    return Controller.extend("sap.ui.demo.walkthrough.App",{

        onShowHello : function(){

            //show a native or vanailla JS alert

            MessageToast.show("Hello Msg Toast There!")

        }

    });

});

举报

相关推荐

0 条评论