[−][src]Struct seed_bootstrap::button::Button
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 link(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]
mut self: Self,
on_click: impl FnOnce(MouseEvent) -> Ms + Clone + 'static
) -> Self
pub fn prefix_content(
mut self: Self,
prefix_content: impl IntoNodes<Ms>
) -> Self
[src]
mut self: Self,
prefix_content: impl IntoNodes<Ms>
) -> Self
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,