Skip to content

Click and mouse events

There are four interaction types: Click, Mouse Down, Mouse Up and Mouse Over. None of them displays a value — they attach an event handler to the object and run only on user interaction, which is why they take no part in the screen’s periodic evaluation loop.

Having chosen the type, you then choose an action.

ActionWhat it does
SetWrites a value to a variable
NavigationTakes the operator to another screen, a popup or a platform page
ConfirmAsks the operator a question before going ahead

The most common action. You give the target variable and the value to write, and the value’s type is chosen as Number or Text.

What really decides the experience is the interface the operator is asked through:

StyleWhat the operator sees
AutoThe interface is chosen for you from the variable’s type
ManualTypes the value in
Yes/NoA yes / no choice
SliderPicks from a range with a slider
ToggleSwitches between two states
Auto ToggleSwitches to whichever state the variable is not currently in
KeyboardAn on-screen keyboard — for touch operator panels
Select (dropdown)One of a predefined set of options

The interface’s size is set separately as Small / Medium / Large.

With Select (dropdown) you can paste the options rather than typing them row by row. Two forms are accepted:

  • JSON — { "Stopped": 0, "Running": 1 }, or [{ "label": "Stopped", "value": 0 }, …]
  • Delimited text — each line, or each item separated by ;, as label:value or label=value

An item with no separator takes its label as its value. Malformed items are skipped.

Decides where clicking the object takes the operator.

Sub-actionWhat it does
Navigate (open page)Opens the target screen
PopupOpens the target screen in a window
Back (previous page)Returns to the previous screen — no target is chosen, the history is used
Map pageOpens the map page
System pageOpens a platform page
VisualizationSwitches to the runtime view
BroadcastOpens the broadcast page

Navigate and Popup can also carry placeholder values for the target screen; that is how one screen is opened for different equipment.

Puts a question to the operator and goes ahead only on confirmation. It belongs in front of a critical write: it stops a button pressed by accident from sending a command to the field.

All four interaction types are available on any SVG object. You do not have to draw a button — an existing valve symbol, a rectangle or a piece of text can be made clickable.