Struct ui::TextInput
zaun_client::ui::TextInput · Struct
pub struct TextInput(…)A text field.
Methods
Section titled “Methods”pub fn short<impl Into<String>>(custom_id: impl Into<String>) -> SelfOne line.
paragraph
Section titled “paragraph”pub fn paragraph<impl Into<String>>(custom_id: impl Into<String>) -> SelfSeveral lines.
length
Section titled “length”pub const fn length(self, min: u32, max: u32) -> SelfLength bounds.
required
Section titled “required”pub const fn required(self, required: bool) -> SelfWhether it must be filled (default yes).
placeholder
Section titled “placeholder”pub fn placeholder<impl Into<String>>(self, text: impl Into<String>) -> SelfGrey text shown while empty.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq