zui docs v0.0.5
GitHub ↗
Display, content, and media Native Qt

Label

Label is a native Zui component in the display, content, and media 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
label "Native Ruby UI", size: 22, bold: true, elide: :right
API

Component properties

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

textText configuration for Label.property
colorColor configuration for Label.property
sizeSize configuration for Label.property
boldBold configuration for Label.property
widthWidth configuration for Label.property
wrapWrap configuration for Label.property
elideElide configuration for Label.property
horizontal_alignmentHorizontal alignment configuration for Label.property
vertical_alignmentVertical alignment configuration for Label.property
maximum_linesMaximum lines configuration for Label.property
formatFormat configuration for Label.property
visibleVisible configuration for Label.property
Show 15 shared item properties
enabledopacityscalerotationzheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

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

linkNative event payload