m3e/bottom_sheet_trigger
BottomSheetTrigger is an element, nested within a clickable element, used to trigger a bottom sheet.
This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00
DO NOT EDIT
Types
BottomSheetTrigger is a View Model for this component
Fields:
- detent: The zero‑based index of the detent the sheet should open to.
- secondary: Marks this trigger as a secondary trigger for accessibility. Secondary triggers do not receive ARIA ownership.
- for: The identifier of the interactive control to which this element is attached.
pub opaque type BottomSheetTrigger
Config is a public record for configuring this component.
pub type Config {
Config(
detent: option.Option(Float),
secondary: Secondary,
for: option.Option(String),
)
}
Constructors
-
Config( detent: option.Option(Float), secondary: Secondary, for: option.Option(String), )
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_detent: option.Option(Float)
pub const default_for: option.Option(String)
pub const default_secondary: Secondary
pub fn detent(
record: BottomSheetTrigger,
detent: option.Option(Float),
) -> BottomSheetTrigger
detent sets the value of detent for this BottomSheetTrigger.
pub fn for(
record: BottomSheetTrigger,
for: option.Option(String),
) -> BottomSheetTrigger
for sets the value of for for this BottomSheetTrigger.
pub fn from_config(config: Config) -> BottomSheetTrigger
from_config creates a new BottomSheetTrigger from the given configuration.
pub fn new() -> BottomSheetTrigger
new creates a new BottomSheetTrigger with the default configuration.
pub fn render(
model: BottomSheetTrigger,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a BottomSheetTrigger
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 BottomSheetTrigger Config
pub fn secondary(
record: BottomSheetTrigger,
secondary: Secondary,
) -> BottomSheetTrigger
secondary sets the value of secondary for this BottomSheetTrigger.