m3e/loading_indicator

loading_indicator provides Lustre support for the M3E Loading Indicator component

Types

LoadingIndicator shows indeterminate progress for a short wait time

Fields:

  • variant: The appearance variant of the indicator
pub opaque type LoadingIndicator

Variant is the appearance variant of the indicator

pub type Variant {
  Contained
  Uncontained
}

Constructors

  • Contained
  • Uncontained

Values

pub const default_variant: Variant
pub fn new() -> LoadingIndicator

new creates a new LoadingIndicator

pub fn render(
  l: LoadingIndicator,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render creates a Lustre Element from a LoadingIndicator

Parameters:

  • l: a LoadingIndicator
  • attributes: a list of additional Attributes
  • children: a list of child Elements
pub fn variant(
  arg: LoadingIndicator,
  variant: Variant,
) -> LoadingIndicator

variant sets the variant field

Search Document