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

Reorderable List

Reorderable List is a native Zui component in the data and collections catalog, with 29 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
reorderable_list [{ id: 1, label: "Design" }, { id: 2, label: "Build" }, { id: 3, label: "Ship" }], key_field: :id, label_field: :label
API

Component properties

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

itemsItems configuration for Reorderable List.property
key_fieldKey field configuration for Reorderable List.property
label_fieldLabel field configuration for Reorderable List.property
description_fieldDescription field configuration for Reorderable List.property
selectedSelected configuration for Reorderable List.property
orientationOrientation configuration for Reorderable List.property
spacingSpacing configuration for Reorderable List.property
paddingPadding configuration for Reorderable List.property
item_paddingItem padding configuration for Reorderable List.property
item_heightItem height configuration for Reorderable List.property
widthWidth configuration for Reorderable List.property
heightHeight configuration for Reorderable List.property
handle_positionHandle position configuration for Reorderable List.property
drag_enabledDrag enabled configuration for Reorderable List.property
drag_scaleDrag scale configuration for Reorderable List.property
drag_opacityDrag opacity configuration for Reorderable List.property
drag_transition_durationDrag transition duration configuration for Reorderable List.property
empty_textEmpty text configuration for Reorderable List.property
backgroundBackground configuration for Reorderable List.property
item_backgroundItem background configuration for Reorderable List.property
selected_backgroundSelected background configuration for Reorderable List.property
foregroundForeground configuration for Reorderable List.property
selected_foregroundSelected foreground configuration for Reorderable List.property
mutedMuted configuration for Reorderable List.property
border_colorBorder color configuration for Reorderable List.property
radiusRadius configuration for Reorderable List.property
font_familyFont family configuration for Reorderable List.property
font_sizeFont size configuration for Reorderable List.property
visibleVisible configuration for Reorderable List.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.

reorderNative event payload
activateNative event payload
changeNative event payload
drag_startNative event payload
drag_moveNative event payload
drag_endNative event payload