Skip to main content

SearchFieldBuilder

Trait SearchFieldBuilder 

Source
pub trait SearchFieldBuilder: Sized {
    // Required method
    fn placeholder<M>(self, t: impl IntoText<M>) -> Self;
}
Expand description

Builder methods of SearchField, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Required Methods§

Source

fn placeholder<M>(self, t: impl IntoText<M>) -> Self

The empty-state prompt shown when the field has no text (a constant, Signal<String>, or closure, evaluated once for the initial value; the placeholder is not reactive after build).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<DecoratedInner> SearchFieldBuilder for Decorated<DecoratedInner>
where DecoratedInner: SearchFieldBuilder + Piece,

Source§

impl<S> SearchFieldBuilder for SearchField<S>
where S: Binding<String>,