Struct yemantic_ui::collections::button::ButtonProps   [−][src]
pub struct ButtonProps {Show fields
    pub root: String,
    pub active: bool,
    pub animated: Either<bool, ButtonAnimationType>,
    pub attached: Either<bool, ButtonAttachedPosition>,
    pub basic: bool,
    pub children: Children,
    pub circular: bool,
    pub class_name: Option<String>,
    pub color: Option<Colors>,
    pub compact: bool,
    pub content: Option<String>,
    pub disabled: bool,
    pub floated: Option<Float>,
    pub fluid: bool,
    pub icon: ChildrenWithProps<Icon>,
    pub inverted: bool,
    pub label: ChildrenWithProps<Label>,
    pub label_position: ButtonLabelPosition,
    pub loading: bool,
    pub negative: bool,
    pub onclick: Callback<MouseEvent>,
    pub positive: bool,
    pub primary: bool,
    pub role: Option<String>,
    pub secondary: bool,
    pub size: Option<Sizes>,
    pub tab_index: Option<isize>,
    pub toggle: bool,
}Fields
root: StringAn html element type to render as root element.
active: boolA button can show it is currently the active user selection.
animated: Either<bool, ButtonAnimationType>A button can animate to show hidden content.
attached: Either<bool, ButtonAttachedPosition>A button can be attached to other content.
basic: boolA basic button is less pronounced.
children: ChildrenPrimary content.
circular: boolA button can be circular.
class_name: Option<String>Additional classes.
color: Option<Colors>A button can have different colors
compact: boolA button can reduce its padding to fit into tighter spaces.
content: Option<String>Shorthand for primary content.
disabled: boolA button can show it is currently unable to be interacted with.
floated: Option<Float>A button can be aligned to the left or right of its container.
fluid: boolA button can take the width of its container.
icon: ChildrenWithProps<Icon>Add an Icon by pass an 
inverted: boolA button can be formatted to appear on dark backgrounds.
label: ChildrenWithProps<Label>Add a Label by pass a .
label_position: ButtonLabelPositionA labeled button can format a Label or Icon to appear on the left or right.
loading: boolA button can show a loading indicator.
negative: boolA button can hint towards a negative consequence.
onclick: Callback<MouseEvent>positive: boolA button can hint towards a positive consequence.
primary: boolA button can be formatted to show different levels of emphasis.
role: Option<String>The role of the HTML element.
secondary: boolA button can be formatted to show different levels of emphasis.
size: Option<Sizes>A button can have different sizes.
tab_index: Option<isize>A button can receive focus.
toggle: boolA button can be formatted to toggle on and off.
Trait Implementations
impl Clone for ButtonProps[src]
impl Clone for ButtonProps[src]fn clone(&self) -> ButtonProps[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<ButtonProps> for ButtonProps[src]
impl PartialEq<ButtonProps> for ButtonProps[src]fn eq(&self, other: &ButtonProps) -> bool[src]
fn ne(&self, other: &ButtonProps) -> bool[src]
impl Properties for ButtonProps[src]
impl Properties for ButtonProps[src]impl StructuralPartialEq for ButtonProps[src]
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
impl<T, V> IntoOptPropValue<V> for T where
    T: IntoPropValue<Option<V>>, 
impl<T, V> IntoOptPropValue<V> for T where
    T: IntoPropValue<Option<V>>, pub fn into_opt_prop_value(self) -> Option<V>
impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for Tpub fn into_prop_value(self) -> Option<T>
impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for Tpub fn into_prop_value(self) -> T
impl<T> Any for T where
    T: Any, 
T: Any,
impl<T> CloneAny for T where
    T: Any + Clone, 
T: Any + Clone,