Struct yew_bootstrap::component::ButtonProps
source · pub struct ButtonProps {
pub class: String,
pub children: Children,
pub block: bool,
pub disabled: bool,
pub name: String,
pub onclick: Callback<MouseEvent>,
pub outline: bool,
pub size: ButtonSize,
pub style: Color,
pub text: String,
pub modal_target: Option<String>,
pub modal_dismiss: bool,
}Expand description
Fields§
§class: StringCSS class
children: ChildrenOptional children
block: boolTreat button as block that spans the full width of the parent
disabled: boolStatus of the button. Disabled buttons cannot be clicked.
name: StringName of the component
onclick: Callback<MouseEvent>Event called when the button is clicked
outline: boolShow button as outlined instead of filled
size: ButtonSizeSize of the button
style: ColorColor of the button, default Color::Primary
text: StringText displayed in the button
modal_target: Option<String>if provided, we will set data-bs-toggle and data-bs-target for modal opening
modal_dismiss: booltrue if this button dismisses the modal that contains it
Trait Implementations§
source§impl Clone for ButtonProps
impl Clone for ButtonProps
source§fn clone(&self) -> ButtonProps
fn clone(&self) -> ButtonProps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl PartialEq for ButtonProps
impl PartialEq for ButtonProps
source§fn eq(&self, other: &ButtonProps) -> bool
fn eq(&self, other: &ButtonProps) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Properties for ButtonProps
impl Properties for ButtonProps
impl StructuralPartialEq for ButtonProps
Auto Trait Implementations§
impl !RefUnwindSafe for ButtonProps
impl !Send for ButtonProps
impl !Sync for ButtonProps
impl Unpin for ButtonProps
impl !UnwindSafe for ButtonProps
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.