pub struct InputBuilder {
pub label: Option<&'static str>,
pub placeholder: Option<&'static str>,
pub value: Option<Signal<String>>,
pub prefix_icon: Option<IconName>,
pub suffix_icon: Option<IconName>,
pub helper_text: Option<&'static str>,
pub is_error: Option<bool>,
pub error_message: Option<&'static str>,
pub disabled: Option<bool>,
pub class: Option<&'static str>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§label: Option<&'static str>§placeholder: Option<&'static str>§value: Option<Signal<String>>§prefix_icon: Option<IconName>§suffix_icon: Option<IconName>§helper_text: Option<&'static str>§is_error: Option<bool>§error_message: Option<&'static str>§disabled: Option<bool>§class: Option<&'static str>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl InputBuilder
impl InputBuilder
pub fn label(self, val: impl Into<Option<&'static str>>) -> Self
pub fn placeholder(self, val: impl Into<Option<&'static str>>) -> Self
pub fn value(self, val: impl Into<Option<Signal<String>>>) -> Self
pub fn prefix_icon(self, val: impl Into<Option<IconName>>) -> Self
pub fn suffix_icon(self, val: impl Into<Option<IconName>>) -> Self
pub fn helper_text(self, val: impl Into<Option<&'static str>>) -> Self
pub fn is_error(self, val: impl Into<Option<bool>>) -> Self
pub fn error_message(self, val: impl Into<Option<&'static str>>) -> Self
pub fn disabled(self, val: impl Into<Option<bool>>) -> Self
pub fn class(self, val: impl Into<Option<&'static str>>) -> Self
pub fn children(self, children: Vec<NodeBlueprint>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InputBuilder
impl !Send for InputBuilder
impl !Sync for InputBuilder
impl !UnwindSafe for InputBuilder
impl Forget for InputBuilder
impl Freeze for InputBuilder
impl Move for InputBuilder
impl Unpin for InputBuilder
impl UnsafeUnpin for InputBuilder
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