Navigation Event control
With this control, you can handle page navigation with commands instead of buttons.
The Navigation Event control cannot be used by itself. It must be used in combination with other controls.
Configuration properties
Set or modify configuration properties for the control, such as behavior properties, in the Configuration properties tab.The behavior configuration properties for the Navigation Event control 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 control is used with two Text controls inside Panel sections.
The Text controls use the fire and confirmAndFire methods to control the Navigation Event:
- The On change event handler of the first Text control is set to if(me.getText() = = "EXIT") ${NavigationEvent1}.fire().
- The On change event handler of the second Text control 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, see Building coaches.
For information about standard properties
(General, Configuration,
Positioning, Visibility, and HTML
Attributes), see Coach view properties.