m3e/linear_progress_indicator

LinearProgressIndicator is a horizontal bar for indicating progress and activity.

This file was generated by m3e/generator

     DO NOT EDIT

Types

Config is a public record for configuring this component.

pub type Config {
  Config(
    buffer_value: Float,
    max: Float,
    mode: linear_progress_mode.LinearProgressMode,
    value: Float,
    variant: progress_indicator_variant.ProgressIndicatorVariant,
  )
}

Constructors

LinearProgressIndicator is a View Model for this component

Fields:

  • buffer_value: A fractional value, between 0 and max, indicating buffer progress.
  • max: The maximum progress value.
  • mode: The mode of the progress bar.
  • value: A fractional value, between 0 and max, indicating progress.
  • variant: The appearance of the indicator.
pub opaque type LinearProgressIndicator

Values

pub fn buffer_value(
  record: LinearProgressIndicator,
  buffer_value: Float,
) -> LinearProgressIndicator

buffer_value sets the value of buffer_value for this LinearProgressIndicator.

pub const default_buffer_value: Float
pub fn default_config() -> Config

default_config is the default configuration for this component.

pub const default_max: Float
pub const default_value: Float
pub fn from_config(config: Config) -> LinearProgressIndicator

from_config creates a new LinearProgressIndicator from the given configuration.

pub fn max(
  record: LinearProgressIndicator,
  max: Float,
) -> LinearProgressIndicator

max sets the value of max for this LinearProgressIndicator.

pub fn mode(
  record: LinearProgressIndicator,
  mode: linear_progress_mode.LinearProgressMode,
) -> LinearProgressIndicator

mode sets the value of mode for this LinearProgressIndicator.

pub fn new() -> LinearProgressIndicator

new creates a new LinearProgressIndicator with the default configuration.

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

render creates a Lustre Element for a LinearProgressIndicator

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

render_config creates a Lustre Element from a LinearProgressIndicator Config

pub fn value(
  record: LinearProgressIndicator,
  value: Float,
) -> LinearProgressIndicator

value sets the value of value for this LinearProgressIndicator.

pub fn variant(
  record: LinearProgressIndicator,
  variant: progress_indicator_variant.ProgressIndicatorVariant,
) -> LinearProgressIndicator

variant sets the value of variant for this LinearProgressIndicator.

Search Document