m3e/stepper

Stepper is provides a wizard-like workflow by dividing content into logical steps.

This file was generated by m3e/generator

     DO NOT EDIT

Types

Config is a public record for configuring this component.

pub type Config {
  Config(
    header_position: step_header_position.StepHeaderPosition,
    label_position: step_label_position.StepLabelPosition,
    linear: Linear,
    orientation: stepper_orientation.StepperOrientation,
  )
}

Constructors

Linear is whether the validity of previous steps should be checked or not.

pub type Linear {
  IsLinear
  IsNotLinear
}

Constructors

  • IsLinear
  • IsNotLinear

Slots are used in child elements to insert content into this component

pub type Slot {
  Step
  Panel
}

Constructors

  • Step
  • Panel

Stepper is a View Model for this component

Fields:

  • header_position: The position of the step header, when oriented horizontally.
  • label_position: The position of the step labels, when oriented horizontally.
  • linear: Whether the validity of previous steps should be checked or not.
  • orientation: The orientation of the stepper.
pub opaque type Stepper

Values

pub fn default_config() -> Config

default_config is the default configuration for this component.

pub const default_linear: Linear
pub fn from_config(config: Config) -> Stepper

from_config creates a new Stepper from the given configuration.

pub fn header_position(
  record: Stepper,
  header_position: step_header_position.StepHeaderPosition,
) -> Stepper

header_position sets the value of header_position for this Stepper.

pub fn label_position(
  record: Stepper,
  label_position: step_label_position.StepLabelPosition,
) -> Stepper

label_position sets the value of label_position for this Stepper.

pub fn linear(record: Stepper, linear: Linear) -> Stepper

linear sets the value of linear for this Stepper.

pub fn new() -> Stepper

new creates a new Stepper with the default configuration.

pub fn orientation(
  record: Stepper,
  orientation: stepper_orientation.StepperOrientation,
) -> Stepper

orientation sets the value of orientation for this Stepper.

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

render creates a Lustre Element for a Stepper

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

render_config creates a Lustre Element from a Stepper Config

pub fn slot(s: Slot) -> attribute.Attribute(msg)

slot returns a Lustre Attribute(msg) for the given slot name

Search Document