generator-openui5
Version:
OpenUI5 generator for yeoman
45 lines (38 loc) • 1.24 kB
JavaScript
(function() {
"use strict";
sap.ui.controller("view.Main", {
/**
* Called when a controller is instantiated and its View controls (if available) are already created.
* Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.
* @memberOf view.Main
*/
// onInit: function() {
// },
/**
* Similar to onAfterRendering, but this hook is invoked before the controller's View is re-rendered
* (NOT before the first rendering! onInit() is used for that one!).
* @memberOf view.Main
*/
// onBeforeRendering: function() {
//
// },
/**
* Called when the View has been rendered (so its HTML is part of the document). Post-rendering manipulations of the HTML could be done here.
* This hook is the same one that OpenUI5 controls get after being rendered.
* @memberOf view.Main
*/
// onAfterRendering: function() {
//
// },
/**
* Called when the Controller is destroyed. Use this one to free resources and finalize activities.
* @memberOf view.Main
*/
// onExit: function() {
//
// }
doSomething: function() {
alert("Button was pressed!");
}
});
}());