m3e/heading
Heading is a heading to a page or section.
This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00
DO NOT EDIT
Types
Config is a public record for configuring this component.
pub type Config {
Config(
emphasized: Emphasized,
level: option.Option(heading_level.HeadingLevel),
size: heading_size.HeadingSize,
variant: heading_variant.HeadingVariant,
)
}
Constructors
-
Config( emphasized: Emphasized, level: option.Option(heading_level.HeadingLevel), size: heading_size.HeadingSize, variant: heading_variant.HeadingVariant, )
Emphasized is whether the heading uses an emphasized typescale.
pub type Emphasized {
IsEmphasized
IsNotEmphasized
}
Constructors
-
IsEmphasized -
IsNotEmphasized
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_emphasized: Emphasized
pub const default_level: option.Option(heading_level.HeadingLevel)
pub const default_size: heading_size.HeadingSize
pub const default_variant: heading_variant.HeadingVariant
pub fn emphasized(
record: Heading,
emphasized: Emphasized,
) -> Heading
emphasized sets the value of emphasized for this Heading.
pub fn from_config(config: Config) -> Heading
from_config creates a new Heading from the given configuration.
pub fn level(
record: Heading,
level: option.Option(heading_level.HeadingLevel),
) -> Heading
level sets the value of level for this Heading.
pub fn render(
model: Heading,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a Heading
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 Heading Config
pub fn size(
record: Heading,
size: heading_size.HeadingSize,
) -> Heading
size sets the value of size for this Heading.
pub fn variant(
record: Heading,
variant: heading_variant.HeadingVariant,
) -> Heading
variant sets the value of variant for this Heading.