text Widget

A text widget displays a message to the user.

Attributes:

  • text: "Message1
    • Required
    • A message to display.

Example

screenshot screenshot

# Ruby nav_page(title: "Text") { scroll { form(widgets: [ text("Hello world!"), text("MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM MMMM"), text("MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"), ]) } }
#![allow(unused)] fn main() { text("Hello world!") }