View – Button and View Controller- Event Handler Function
Created a UI5 application with XML view.
Add a button to the view.
The view controller.
Let’s add an PRESS event to the button with function name as- “onClick” and the function definition can be defined in the view controller.
In the view controller, the onClick function is implemented and for time being it just shows an alert message.