UI5 View & Event Handler in View Controller

light111View – Button and View Controller- Event Handler Function


Created a UI5 application with XML view. 

Add a button to the view.

1

The view controller.

2

O/P:

3


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.

4

In the view controller, the onClick function is implemented and for time being it just shows an alert message.

5

O/P:

6


 

One comment

Leave a reply to Anonymous Cancel reply