zui docs v0.0.5
GitHub ↗
Buttons and input Native Qt

Button Group

Button Group is a native Zui component in the buttons and input catalog, with 9 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
button_group :day, options: [{ label: "Day", value: :day }, { label: "Week", value: :week }]
API

Component properties

9 component-specific values, plus shared item and layout properties.

valueValue configuration for Button Group.property
optionsOptions configuration for Button Group.property
foregroundForeground configuration for Button Group.property
backgroundBackground configuration for Button Group.property
accentAccent configuration for Button Group.property
font_familyFont family configuration for Button Group.property
font_sizeFont size configuration for Button Group.property
focusableFocusable configuration for Button Group.property
cursor_indexCursor index configuration for Button Group.property
Show 17 shared item properties
visibleenabledopacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

changeNative event payload
hoverNative event payload