on 03-01-2021 4:25 PM
Fragment :
<m:Button id = "btn1" press = ".extension.zmyproject.btnSave.showText"/>
Controller :
btnSave.js
return ControllerExtension.extend("zmyproject.btnSave",
{
onInit: function()
{
MessageToast.show("Hello World");
},
showText: function() {
MessageToast.show("Hello World"); MessageBox.error("Error"); console.log("Hello");
}
});
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.