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

Selectable Text

Selectable Text is a native Zui component in the display, content, and media catalog, with 10 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
selectable_text "Copy this generated token: zui_42a9", width: 460
API

Component properties

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

textText configuration for Selectable Text.property
colorColor configuration for Selectable Text.property
selection_colorSelection color configuration for Selectable Text.property
selected_text_colorSelected text color configuration for Selectable Text.property
sizeSize configuration for Selectable Text.property
boldBold configuration for Selectable Text.property
widthWidth configuration for Selectable Text.property
wrapWrap configuration for Selectable Text.property
formatFormat configuration for Selectable Text.property
visibleVisible configuration for Selectable Text.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.

selectionNative event payload
linkNative event payload