pub struct TextInputBuilder { /* private fields */ }Expand description
Builder for a TextInput component.
Required: value (String), on_change (Lambda).
Optional: placeholder, label, keyboard, max_length, multiline.
Implementations§
Source§impl TextInputBuilder
impl TextInputBuilder
Sourcepub fn new(value: impl Into<String>, on_change: PropValue) -> Self
pub fn new(value: impl Into<String>, on_change: PropValue) -> Self
Create a new TextInputBuilder with required props.
on_change must be a PropValue::Lambda — use PropValue::lambda(id).
pub fn placeholder(self, placeholder: impl Into<String>) -> Self
pub fn label(self, label: impl Into<String>) -> Self
pub fn keyboard(self, keyboard: KeyboardType) -> Self
pub fn max_length(self, max_length: f64) -> Self
pub fn multiline(self, multiline: bool) -> Self
pub fn build(self) -> SurfaceNode
Auto Trait Implementations§
impl Freeze for TextInputBuilder
impl RefUnwindSafe for TextInputBuilder
impl Send for TextInputBuilder
impl Sync for TextInputBuilder
impl Unpin for TextInputBuilder
impl UnwindSafe for TextInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more