segmentedBtn2¶
How to write by SpWML¶
(segmentedBtn2, sid:segmentedBtn1)
+(menu, tag:child1)button1
+(menu, tag:child2)button2
+(menu, tag:child3)button3
Summary¶
A block that allows you to create buttons separated by fields.
It is necessary to set the SID.
This is a flavor of segmentedBtn that allows state management via a String.
It requires tags for all children, but in some cases it can be more convenient than the plain version because the state can be managed via tags.
It has a variable with parameters equivalent to Flutter SegmentedButton class .
To use this type, it is necessary to set MultiTagSelectionManager to SpWMLBuilder or SpWML widget.
Dart Class Reference¶
SpWML Parameters¶
The common parameters.
Parent parameters.
isMultiSelection (bool). If true, multiple selections are allowed. Default is false.
allowEmpty (bool). If true, unselected states are allowed. Default is true.
isEnabled (bool). Set to false if you want to disable this elements.