zui docs v0.0.5
GitHub ↗
Drawing and interaction Native Qt

Scroll Bar

Scroll Bar is a native Zui component in the drawing and interaction catalog, with 12 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
list = list_view (1..50).map { |index| { label: "Item \#{index}" } }, height: 280
scroll_bar list, orientation: :vertical, policy: :always_on
API

Component properties

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

targetTarget configuration for Scroll Bar.property
orientationOrientation configuration for Scroll Bar.property
policyPolicy configuration for Scroll Bar.property
positionPosition configuration for Scroll Bar.property
sizeSize configuration for Scroll Bar.property
activeActive configuration for Scroll Bar.property
interactiveInteractive configuration for Scroll Bar.property
step_sizeStep size configuration for Scroll Bar.property
minimum_sizeMinimum size configuration for Scroll Bar.property
widthWidth configuration for Scroll Bar.property
heightHeight configuration for Scroll Bar.property
visibleVisible configuration for Scroll Bar.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
active_changeNative event payload