⌂
›
Reference
›
TextField
TextField
Material text input control for single-line and multi-line entry.
Example
text_field(
label: "Name",
value: "Ruflet"
)
Common properties
labelvaluehint_textpasswordmultilineon_changeon_submit
Usage
status = text(value: "")
text_field(
label: "Name",
on_change: ->(e) { page.update(status, value: e.data.to_s) }
)
Notes
on_changeis commonly used withpage.update(...)- use
multiline: truefor larger text entry areas