zui docs v0.0.5
GitHub ↗
Navigation and structure Container Native Qt

Swipe View

Swipe View is a native Zui container in the navigation and structure 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
swipe_view current_index: 0, orientation: :horizontal, interactive: true do
  page("Today") { text "Today" }
  page("Tomorrow") { text "Tomorrow" }
end
API

Component properties

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

current_indexCurrent index configuration for Swipe View.property
orientationOrientation configuration for Swipe View.property
interactiveInteractive configuration for Swipe View.property
widthWidth configuration for Swipe View.property
heightHeight configuration for Swipe View.property
enabledEnabled configuration for Swipe View.property
backgroundBackground configuration for Swipe View.property
border_colorBorder color configuration for Swipe View.property
radiusRadius configuration for Swipe View.property
clipClip configuration for Swipe View.property
layout_directionLayout direction configuration for Swipe View.property
visibleVisible configuration for Swipe View.property
Show 13 shared item properties
opacityscalerotationzfill_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
count_changeNative event payload
showNative event payload
hideNative event payload
focusNative event payload
blurNative event payload