[][src]Struct seed_bootstrap::button::Button

pub struct Button<Ms: 'static> { /* fields omitted */ }

Implementations

impl<Ms> Button<Ms>[src]

pub fn new(title: impl Into<Cow<'static, str>>) -> Self[src]

pub fn title(mut self: Self, title: impl Into<Cow<'static, str>>) -> Self[src]

pub fn primary(self) -> Self[src]

pub fn secondary(self) -> Self[src]

pub fn success(self) -> Self[src]

pub fn danger(self) -> Self[src]

pub fn warning(self) -> Self[src]

pub fn info(self) -> Self[src]

pub fn light(self) -> Self[src]

pub fn dark(self) -> Self[src]

pub fn no_style(self) -> Self[src]

pub fn outline(mut self: Self) -> Self[src]

pub fn small(self) -> Self[src]

pub fn large(self) -> Self[src]

pub fn block(mut self: Self) -> Self[src]

pub fn a(self, href: impl Into<Cow<'static, str>>, role: Role) -> Self[src]

pub fn button(self, type_: Type) -> Self[src]

pub fn input(self, type_: Type) -> Self[src]

pub fn label(self) -> Self[src]

pub fn text_no_wrap(mut self: Self) -> Self[src]

pub fn add_attrs(mut self: Self, attrs: Attrs) -> Self[src]

pub fn add_style(mut self: Self, style: StyleSeed) -> Self[src]

pub fn disabled(mut self: Self, disabled: bool) -> Self[src]

pub fn add_on_click(
    mut self: Self,
    on_click: impl FnOnce(MouseEvent) -> Ms + Clone + 'static
) -> Self
[src]

pub fn prefix_content(
    mut self: Self,
    prefix_content: impl IntoNodes<Ms>
) -> Self
[src]

pub fn content(mut self: Self, content: impl IntoNodes<Ms>) -> Self[src]

pub fn el_ref(mut self: Self, el_ref: &ElRef<HtmlElement>) -> Self[src]

pub fn view(self) -> Node<Ms>[src]

pub fn view_toggle(self, active: bool) -> Node<Ms>[src]

Trait Implementations

impl<Ms> Default for Button<Ms>[src]

impl<Ms> UpdateEl<Ms> for Button<Ms>[src]

Auto Trait Implementations

impl<Ms> !RefUnwindSafe for Button<Ms>[src]

impl<Ms> !Send for Button<Ms>[src]

impl<Ms> !Sync for Button<Ms>[src]

impl<Ms> Unpin for Button<Ms>[src]

impl<Ms> !UnwindSafe for Button<Ms>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,