pub struct SelectBuilder {
pub id: Option<&'static str>,
pub label: Option<&'static str>,
pub options: Option<Vec<SelectOption>>,
pub value: Option<Signal<String>>,
pub on_change: Option<Rc<dyn Fn(&str)>>,
pub disabled: Option<bool>,
pub class: Option<&'static str>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§id: Option<&'static str>§label: Option<&'static str>§options: Option<Vec<SelectOption>>§value: Option<Signal<String>>§on_change: Option<Rc<dyn Fn(&str)>>§disabled: Option<bool>§class: Option<&'static str>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl SelectBuilder
impl SelectBuilder
pub fn id(self, val: impl Into<Option<&'static str>>) -> Self
pub fn label(self, val: impl Into<Option<&'static str>>) -> Self
pub fn options(self, val: impl Into<Vec<SelectOption>>) -> Self
pub fn value(self, val: impl Into<Option<Signal<String>>>) -> Self
pub fn on_change<__Marker>( self, val: impl __Select_on_change_IntoCallback<__Marker>, ) -> Self
pub fn on_change_fn(self, val: impl Fn(&str) + 'static) -> 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 SelectBuilder
impl !Send for SelectBuilder
impl !Sync for SelectBuilder
impl !UnwindSafe for SelectBuilder
impl Forget for SelectBuilder
impl Freeze for SelectBuilder
impl Move for SelectBuilder
impl Unpin for SelectBuilder
impl UnsafeUnpin for SelectBuilder
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