Create a text widget
Examples
if (FALSE) { # \dontrun{
# Simple text display
quick_app(
layout = vstack(
text("Hello world!", id = "greeting"),
text("With tooltip", id = "tip", tooltip = "Hover me"),
id = "root"
)
)
# Update text from a handler
quick_app(
layout = vstack(
text("Click the button", id = "msg"),
button("Go", id = "btn"),
id = "root"
),
on_click = list(
btn = function(event, state) {
update(state$app, "msg", content = "Button clicked!")
state
}
)
)
} # }
