zui docs v0.0.5
GitHub ↗
Data and collections Native Qt

Tumbler

Tumbler is a native Zui component in the data and collections catalog, with 14 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
tumbler %w[Low Medium High], current_index: 1, visible_item_count: 3, wrap: true
API

Component properties

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

itemsItems configuration for Tumbler.property
current_indexCurrent index configuration for Tumbler.property
visible_item_countVisible item count configuration for Tumbler.property
wrapWrap configuration for Tumbler.property
interactiveInteractive configuration for Tumbler.property
widthWidth configuration for Tumbler.property
heightHeight configuration for Tumbler.property
backgroundBackground configuration for Tumbler.property
foregroundForeground configuration for Tumbler.property
mutedMuted configuration for Tumbler.property
accentAccent configuration for Tumbler.property
font_familyFont family configuration for Tumbler.property
font_sizeFont size configuration for Tumbler.property
visibleVisible configuration for Tumbler.property
Show 14 shared item properties
enabledopacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

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

inputNative event payload
changeNative event payload
activateNative event payload