Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit bd41f6c

Browse files
committed
Documentation update
1 parent 33d8931 commit bd41f6c

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

eu.dariolucia.reatmetric.ui/Mimics.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,26 @@ This attribute can be present several times attached to a single SVG element. If
173173
is evaluated in lexicographical order. As soon as one item's evaluation is successful, the list evaluation
174174
stops.
175175

176-
Allowed expression values: `<rotation time in milliseconds> <rotation center x> <rotation center y>` or `none` to disable the rotation.
176+
Allowed expression values: `<rotation time in milliseconds> <rotation center x> <rotation center y>` or `none` to disable the rotation.
177+
178+
### Actions
179+
180+
Actions can be linked to SVG elements by means of the `onclick` attribute. In addition to the standard javascript functions,
181+
ReatMetric mimics can use the following functions.
182+
In order to indicate the presence of a clickable action, it is suggested to also use the attribute `cursor=pointer`.
183+
184+
#### reatmetric.and('name')
185+
186+
Open the specified AND.
187+
188+
#### reatmetric.chart('name')
189+
190+
Open the specified chart.
191+
192+
#### reatmetric.mimics('name')
193+
194+
Open the specified mimics.
195+
196+
#### reatmetric.exec('path')
197+
198+
Open the dialog window to request the execution of the specified activity.

0 commit comments

Comments
 (0)