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

Rich Text

Rich Text is a native Zui component in the display, content, and media catalog, with 9 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
rich_text "<b>Native</b> content with an <a href=\"https://ruby-lang.org\">external link</a>", width: 520
API

Component properties

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

textText configuration for Rich Text.property
colorColor configuration for Rich Text.property
link_colorLink color configuration for Rich Text.property
sizeSize configuration for Rich Text.property
boldBold configuration for Rich Text.property
widthWidth configuration for Rich Text.property
wrapWrap configuration for Rich Text.property
maximum_linesMaximum lines configuration for Rich Text.property
visibleVisible configuration for Rich 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.

linkNative event payload