What is an Event Handler?
An Event Handler is an action that responds to a specific event, such as a mouse click, double click or enter key press. The Event Handler defines how the application behaves when the event is triggered.
Event handlers can be configured to respond to events by running a Table-action or Actionflow.
The types of event handler are:
Set event handlers on: | |||
Event Type | Description | Supported Components | Supported Data Fields |
---|---|---|---|
On Click | The user mouse clicks in an area. | Area | - |
On Change | A toggle field changes state or the user mouse-clicks out of a data field in which they have changed data. Note: this event is not triggered by the user typing into a field. | Area | Boolean Date Datetime Number String |
On Enter | The user presses the Enter key in a data field. | - | |
On Blur | The user mouse-clicks out of a data field. The event is triggered whether or not the field has changed. | - |
You do not have to configure OnClick events for button components, because button actions are always triggered when the user mouse-clicks on them.
Adding an Event Handler
- From the screen, click on a component to open its properties.
- In the Event Handler section, click Add New to create a new event handler.
- PhixFlow opens a new properties tab for the event handler.
- Select the Event Type, Action Method and specific table-action or actionflow you require; see the properties below.
Event Handler Properties
Basic Settings
Field | Description |
---|---|
Event Type | Select the type of event that will trigger an action:
The list shows only the events available for this type of component. |
Action Method | Available when Event Type is selected. Select the type of action:
|
Action | Available when Action Method is Table-Action.
|
Actionflow | Available when Action Method is Actionflow. To select an actionflow, do one of the following:
|
Other | Available when Action Method is Other. Select from the drop down:
|