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

Drawer

Drawer is a native Zui container in the navigation and structure catalog, with 18 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
drawer opened: true, edge: :left, width: 320, modal: true do
  column(spacing: 12) { label "Navigation" }
end
API

Component properties

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

openedOpened configuration for Drawer.property
edgeEdge configuration for Drawer.property
modalModal configuration for Drawer.property
dimDim configuration for Drawer.property
interactiveInteractive configuration for Drawer.property
drag_marginDrag margin configuration for Drawer.property
close_policyClose policy configuration for Drawer.property
layoutLayout configuration for Drawer.property
spacingSpacing configuration for Drawer.property
paddingPadding configuration for Drawer.property
widthWidth configuration for Drawer.property
heightHeight configuration for Drawer.property
enabledEnabled configuration for Drawer.property
backgroundBackground configuration for Drawer.property
foregroundForeground configuration for Drawer.property
border_colorBorder color configuration for Drawer.property
radiusRadius configuration for Drawer.property
visibleVisible configuration for Drawer.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.

openNative event payload
closeNative event payload
about_to_showNative event payload
about_to_hideNative event payload
position_changeNative event payload
showNative event payload
hideNative event payload
focusNative event payload
blurNative event payload