m3e/loading_indicator

LoadingIndicator is shows indeterminate progress for a short wait time.

This file was generated by m3e/generator

     DO NOT EDIT

Types

Config is a public record for configuring this component.

pub type Config {
  Config(
    variant: loading_indicator_variant.LoadingIndicatorVariant,
    pull_progress: option.Option(Float),
  )
}

Constructors

LoadingIndicator is a View Model for this component

Fields:

  • variant: The appearance variant of the indicator.
  • pull_progress: Pull-to-refresh progress in turns; each increment of 1 rotates the indicator one full turn. Set to null when no pull gesture is active.
pub opaque type LoadingIndicator

Values

pub fn default_config() -> Config

default_config is the default configuration for this component.

pub const default_pull_progress: option.Option(Float)
pub fn from_config(config: Config) -> LoadingIndicator

from_config creates a new LoadingIndicator from the given configuration.

pub fn new() -> LoadingIndicator

new creates a new LoadingIndicator with the default configuration.

pub fn pull_progress(
  record: LoadingIndicator,
  pull_progress: option.Option(Float),
) -> LoadingIndicator

pull_progress sets the value of pull_progress for this LoadingIndicator.

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

render creates a Lustre Element for a LoadingIndicator

pub fn render_config(
  c: Config,
  attributes: List(attribute.Attribute(msg)),
) -> element.Element(msg)

render_config creates a Lustre Element from a LoadingIndicator Config

pub fn variant(
  record: LoadingIndicator,
  variant: loading_indicator_variant.LoadingIndicatorVariant,
) -> LoadingIndicator

variant sets the value of variant for this LoadingIndicator.

✨ Search Document