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


 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s