Label
The one text node.
source is a &str or String (static), a Signal<T: Display> (live), or a closure Fn() -> String (recomputed when the signals it reads change). .nowrap() keeps it on one line.
GUITUIRuns in the browser
textPreview
Usage example
fn label_demo() -> TextBuilder { text("Labels and text share TextContent.").nowrap() }fn label_demo() -> TextBuilder { text("Labels and text share TextContent.").nowrap() }API
| Name | Signature | Purpose |
|---|---|---|
text | fn text(source: impl Into<TextContent>) -> TextBuilder | The one text node. source is a &str or String (static), a Signal<T: Display> (live), or a closure Fn() -> String (recomputed when the signals it reads change). .nowrap() keeps it on one line. |