plushie/widget/button

Button widget builder.

Types

pub opaque type Button
pub type ButtonStyle {
  Primary
  Secondary
  Success
  Warning
  Danger
  TextStyle
  BackgroundStyle
  Subtle
}

Constructors

  • Primary
  • Secondary
  • Success
  • Warning
  • Danger
  • TextStyle
  • BackgroundStyle
  • Subtle

Values

pub fn a11y(button: Button, a: a11y.A11y) -> Button

Set accessibility properties for this button.

pub fn build(button: Button) -> node.Node

Build the button into a renderable Node.

pub fn clip(button: Button, c: Bool) -> Button

Set whether child content that overflows is clipped.

pub fn disabled(button: Button, d: Bool) -> Button

Set whether the button is disabled.

pub fn height(button: Button, h: length.Length) -> Button

Set the button height.

pub fn new(id: String, label: String) -> Button

Create a new button builder with the given ID and label.

pub fn padding(button: Button, p: padding.Padding) -> Button

Set the button padding.

pub fn style(button: Button, s: ButtonStyle) -> Button

Set the button style preset.

pub fn width(button: Button, w: length.Length) -> Button

Set the button width.

Search Document