Component image
The ReferenceRadio component is a listener component that activates or deactivates slots using the CheckVisual
field, based if a TargetReference
matches the OptionReference
field. When a match is found, the CheckVisual
field will be set to true.
Usage
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
CheckVisual
|
field drive of Bool | The bool that will be set true when there is a match. |
OptionReference
|
T | The reference we are checking a match for, when found, it will trigger this option. |
TargetReference
|
direct RelayRef`1<SyncRef`1<T>> | The thing we are using to check. |
Usage
- This is useful for making forms that need one answer from many choices, a set of button that should only have one being active, and anything that requires only one activation from many things.
- the
CheckVisual
field does not just have to be the active of a slot, this can be any IField bool, allowing users to be creative with how they want to structure their component's logic.