Navigation event
Allows users to handle page navigation with commands instead of buttons.
The Navigation event view cannot be used by itself. It must be used in combination with other views.
Configuration properties
Under Configuration, set or modify the behavior properties for the view.
The behavior configuration properties for the Navigation event view are shown in the following table:
Behavior configuration property | Description | Data type |
---|---|---|
Event data | Data to pass into the navigation event. | String(list) |
Example
In this example, the Navigation event view is used with two Text views inside Panel sections.
The Text views use the fire
and confirmAndFire
methods to
control the Navigation event:
- The On change event handler of the first Text view is set to if(me.getText() = = "EXIT") ${NavigationEvent1}.fire().
- The On change event handler of the second Text view is set to if(me.getText() = = "EXIT") ${NavigationEvent1}.confirmAndFire("Are you sure you want to exit?").
As a result:
- Typing Exit in the first text box ends the service.
- Typing Exit in the second text box returns an alert because of the
confirmAndFire
method.
Additional resources
For information about how to create a coach or page, see Building coaches.
For information about standard properties
(General, Configuration,
Positioning, Visibility, and HTML
Attributes), see View properties.