pub struct InputBuilder<'a> { /* private fields */ }Expand description
Single-line editable text field. Start with input.
The framework’s text store edits it: caret, selection (drag, double and
triple click, Shift+arrows, select all), clipboard, IME composition with
the candidate window at the caret, and undo / redo (Ctrl+Z, Ctrl+Shift+Z
or Ctrl+Y; typing undoes a word at a time). The bound String is
two-way: a user edit is written back to it (changed), and a value the
app sets is pushed into the field, which drops its undo history the way
input.value = .. does. Enter reports TextIntent::Submitted.
Implementations§
Source§impl<'a> InputBuilder<'a>
impl<'a> InputBuilder<'a>
Sourcepub fn placeholder(self, p: &'a str) -> Self
pub fn placeholder(self, p: &'a str) -> Self
Grey hint shown while empty. Also the accessible name without .label.
Auto Trait Implementations§
impl<'a> !UnwindSafe for InputBuilder<'a>
impl<'a> Forget for InputBuilder<'a>
impl<'a> Freeze for InputBuilder<'a>
impl<'a> RefUnwindSafe for InputBuilder<'a>
impl<'a> Send for InputBuilder<'a>
impl<'a> Sync for InputBuilder<'a>
impl<'a> Unpin for InputBuilder<'a>
impl<'a> UnsafeUnpin for InputBuilder<'a>
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