pub struct ButtonBuilder {
pub variant: Option<ButtonVariant>,
pub size: Option<ButtonSize>,
pub loading: Option<bool>,
pub disabled: Option<bool>,
pub class: Option<&'static str>,
pub onclick: Option<Rc<dyn Fn()>>,
pub prefix_icon: Option<IconName>,
pub suffix_icon: Option<IconName>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§variant: Option<ButtonVariant>§size: Option<ButtonSize>§loading: Option<bool>§disabled: Option<bool>§class: Option<&'static str>§onclick: Option<Rc<dyn Fn()>>§prefix_icon: Option<IconName>§suffix_icon: Option<IconName>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl ButtonBuilder
impl ButtonBuilder
pub fn variant(self, val: impl Into<Option<ButtonVariant>>) -> Self
pub fn size(self, val: impl Into<Option<ButtonSize>>) -> Self
pub fn loading(self, val: impl Into<Option<bool>>) -> Self
pub fn disabled(self, val: impl Into<Option<bool>>) -> Self
pub fn class(self, val: impl Into<Option<&'static str>>) -> Self
pub fn onclick<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onclick_fn(self, handler: impl Fn() + 'static) -> 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 children( self, val: impl IntoChildren<Option<Vec<NodeBlueprint>>>, ) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ButtonBuilder
impl !Send for ButtonBuilder
impl !Sync for ButtonBuilder
impl !UnwindSafe for ButtonBuilder
impl Forget for ButtonBuilder
impl Freeze for ButtonBuilder
impl Move for ButtonBuilder
impl Unpin for ButtonBuilder
impl UnsafeUnpin for ButtonBuilder
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