<triggerSet>
<triggerSet> is a General Operator
component that combines the actions of multiple <updateValue>, <triggerSet> and/or <callAction> components and allows them to be triggered by a single button click interaction or boolean condition.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
anchor = "…" | point | |
draggable = "…" | boolean | "true" "false" |
labelIsName = "…" | boolean | "true" "false" |
positionFromAnchor = "…" | text | "upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center" |
triggerWhen = "…" | "true" "false" | |
triggerWhenObjectsClicked = "…" | ||
triggerWhenObjectsFocused = "…" | ||
triggerWith = "…" |
| Property | Type |
|---|---|
$t.anchor | point |
$t.disabled | boolean |
$t.draggable | boolean |
$t.fixed | boolean |
$t.fixLocation | boolean |
$t.hidden | boolean |
$t.label | label |
$t.labelIsName | boolean |
$t.positionFromAnchor | text |
Example: <triggerSet> with a button
A <triggerSet> is used to link muliple actions that take place with one button click.
Example: <triggerSet> on a graph
A <triggerSet> button can be rendered on a <graph>. The position of the button is specified with the anchor attribute.
Attribute Example: triggerWhen
The triggerWhen attribute takes a boolean condition as input. When the boolean condition evaluates to true, the actions within the <triggerSet> are performed.
Attribute Example: triggerWith
The triggerWith attribute takes a component reference as input. When the referenced
component has a change in value, the actions within the <triggerSet> are performed.
Attribute Example: triggerWhenObjectsClicked
The triggerWhenObjectsClicked attribute takes a list of target “objects” as its input. Objects are components that have been defined within the graph and can be clicked.
Attribute Example: anchor
The anchor attribute specifies the position of the <triggerSet> button when placed within a <graph>.
Attribute Example: labelIsName
The labelIsName attribute is a shortcut to adding a <label> child to a <triggerSet>.