⌂
›
Reference
›
SegmentedButton
SegmentedButton
SegmentedButton control. Build it with the segmented_button helper.
Example
segmented_button(
selected: true,
expand: true,
width: 240,
height: 120,
on_change: ->(event) {}
)
Properties
allow_empty_selectionallow_multiple_selectiondirectionpadding— Inner spacing between the border and the content.segmentsselected— Whether the control is selected.selected_icon— Selected icon.show_selected_icon— Show selected icon.style— Style overrides for the control.
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_animation_end— Fired when an animation completes.on_change— Fired when the value changes.on_size_change— Fired when the control's size changes.
Reference
- Family:
materials - Widget type:
segmentedbutton - Helper:
segmented_button