pub struct SearchBarBuilder { /* private fields */ }Expand description
Configuration handle returned by search_bar.
Implementations§
Source§impl SearchBarBuilder
impl SearchBarBuilder
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn enabled_optional(&self, value: Option<bool>) -> Self
pub fn enabled_optional(&self, value: Option<bool>) -> Self
Configure enabled before this component executes.
Sourcepub fn read_only(&self, value: bool) -> Self
pub fn read_only(&self, value: bool) -> Self
Configure read_only before this component executes.
Sourcepub fn read_only_optional(&self, value: Option<bool>) -> Self
pub fn read_only_optional(&self, value: Option<bool>) -> Self
Configure read_only before this component executes.
Sourcepub fn is_active(&self, value: bool) -> Self
pub fn is_active(&self, value: bool) -> Self
Configure is_active before this component executes.
Sourcepub fn is_active_optional(&self, value: Option<bool>) -> Self
pub fn is_active_optional(&self, value: Option<bool>) -> Self
Configure is_active before this component executes.
Sourcepub fn placeholder(&self, value: impl Into<String>) -> Self
pub fn placeholder(&self, value: impl Into<String>) -> Self
Configure placeholder before this component executes.
Sourcepub fn placeholder_optional(&self, value: Option<String>) -> Self
pub fn placeholder_optional(&self, value: Option<String>) -> Self
Configure placeholder before this component executes.
Sourcepub fn leading_icon<F, Output>(&self, value: F) -> Self
pub fn leading_icon<F, Output>(&self, value: F) -> Self
Configure leading_icon before this component executes.
Configure leading_icon before this component executes.
Sourcepub fn leading_icon_optional(&self, value: Option<RenderSlot>) -> Self
pub fn leading_icon_optional(&self, value: Option<RenderSlot>) -> Self
Configure leading_icon before this component executes.
Sourcepub fn trailing_icon<F, Output>(&self, value: F) -> Self
pub fn trailing_icon<F, Output>(&self, value: F) -> Self
Configure trailing_icon before this component executes.
Configure trailing_icon before this component executes.
Sourcepub fn trailing_icon_optional(&self, value: Option<RenderSlot>) -> Self
pub fn trailing_icon_optional(&self, value: Option<RenderSlot>) -> Self
Configure trailing_icon before this component executes.
Sourcepub fn on_query_change<F>(&self, value: F) -> Self
pub fn on_query_change<F>(&self, value: F) -> Self
Configure on_query_change before this component executes.
Configure on_query_change before this component executes.
Sourcepub fn on_query_change_optional(
&self,
value: Option<CallbackWith<String, String>>,
) -> Self
pub fn on_query_change_optional( &self, value: Option<CallbackWith<String, String>>, ) -> Self
Configure on_query_change before this component executes.
Sourcepub fn on_search<F>(&self, value: F) -> Self
pub fn on_search<F>(&self, value: F) -> Self
Configure on_search before this component executes.
Configure on_search before this component executes.
Sourcepub fn on_search_optional(
&self,
value: Option<CallbackWith<String, ()>>,
) -> Self
pub fn on_search_optional( &self, value: Option<CallbackWith<String, ()>>, ) -> Self
Configure on_search before this component executes.
Sourcepub fn on_active_change<F>(&self, value: F) -> Self
pub fn on_active_change<F>(&self, value: F) -> Self
Configure on_active_change before this component executes.
Configure on_active_change before this component executes.
Sourcepub fn on_active_change_optional(
&self,
value: Option<CallbackWith<bool, ()>>,
) -> Self
pub fn on_active_change_optional( &self, value: Option<CallbackWith<bool, ()>>, ) -> Self
Configure on_active_change before this component executes.
Sourcepub fn shape_optional(&self, value: Option<Shape>) -> Self
pub fn shape_optional(&self, value: Option<Shape>) -> Self
Configure shape before this component executes.
Sourcepub fn colors(&self, value: SearchBarColors) -> Self
pub fn colors(&self, value: SearchBarColors) -> Self
Configure colors before this component executes.
Sourcepub fn colors_optional(&self, value: Option<SearchBarColors>) -> Self
pub fn colors_optional(&self, value: Option<SearchBarColors>) -> Self
Configure colors before this component executes.
Sourcepub fn results_container_color(&self, value: Color) -> Self
pub fn results_container_color(&self, value: Color) -> Self
Configure results_container_color before this component executes.
Sourcepub fn results_container_color_optional(&self, value: Option<Color>) -> Self
pub fn results_container_color_optional(&self, value: Option<Color>) -> Self
Configure results_container_color before this component executes.
Sourcepub fn tonal_elevation(&self, value: Dp) -> Self
pub fn tonal_elevation(&self, value: Dp) -> Self
Configure tonal_elevation before this component executes.
Sourcepub fn tonal_elevation_optional(&self, value: Option<Dp>) -> Self
pub fn tonal_elevation_optional(&self, value: Option<Dp>) -> Self
Configure tonal_elevation before this component executes.
Sourcepub fn shadow_elevation(&self, value: Dp) -> Self
pub fn shadow_elevation(&self, value: Dp) -> Self
Configure shadow_elevation before this component executes.
Sourcepub fn shadow_elevation_optional(&self, value: Option<Dp>) -> Self
pub fn shadow_elevation_optional(&self, value: Option<Dp>) -> Self
Configure shadow_elevation before this component executes.
Sourcepub fn dropdown_shape(&self, value: Shape) -> Self
pub fn dropdown_shape(&self, value: Shape) -> Self
Configure dropdown_shape before this component executes.
Sourcepub fn dropdown_shape_optional(&self, value: Option<Shape>) -> Self
pub fn dropdown_shape_optional(&self, value: Option<Shape>) -> Self
Configure dropdown_shape before this component executes.
Sourcepub fn dropdown_gap(&self, value: Dp) -> Self
pub fn dropdown_gap(&self, value: Dp) -> Self
Configure dropdown_gap before this component executes.
Sourcepub fn dropdown_gap_optional(&self, value: Option<Dp>) -> Self
pub fn dropdown_gap_optional(&self, value: Option<Dp>) -> Self
Configure dropdown_gap before this component executes.
Sourcepub fn show_divider(&self, value: bool) -> Self
pub fn show_divider(&self, value: bool) -> Self
Configure show_divider before this component executes.
Sourcepub fn show_divider_optional(&self, value: Option<bool>) -> Self
pub fn show_divider_optional(&self, value: Option<bool>) -> Self
Configure show_divider before this component executes.
Sourcepub fn content_padding(&self, value: Dp) -> Self
pub fn content_padding(&self, value: Dp) -> Self
Configure content_padding before this component executes.
Sourcepub fn content_padding_optional(&self, value: Option<Dp>) -> Self
pub fn content_padding_optional(&self, value: Option<Dp>) -> Self
Configure content_padding before this component executes.
Sourcepub fn controller(&self, value: State<SearchBarController>) -> Self
pub fn controller(&self, value: State<SearchBarController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<SearchBarController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<SearchBarController>>, ) -> Self
Configure controller before this component executes.
Sourcepub fn content<F, Output>(&self, value: F) -> Self
pub fn content<F, Output>(&self, value: F) -> Self
Configure content before this component executes.
Configure content before this component executes.
Sourcepub fn content_optional(&self, value: Option<RenderSlot>) -> Self
pub fn content_optional(&self, value: Option<RenderSlot>) -> Self
Configure content before this component executes.
Auto Trait Implementations§
impl Freeze for SearchBarBuilder
impl RefUnwindSafe for SearchBarBuilder
impl Send for SearchBarBuilder
impl Sync for SearchBarBuilder
impl Unpin for SearchBarBuilder
impl UnsafeUnpin for SearchBarBuilder
impl UnwindSafe for SearchBarBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.