m3e/tree
Tree is presents hierarchical data in a tree structure.
This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00
DO NOT EDIT
Types
Cascade is whether multiple item selection cascades to child items.
pub type Cascade {
IsCascade
IsNotCascade
}
Constructors
-
IsCascade -
IsNotCascade
Multi is whether multiple items can be selected.
pub type Multi {
IsMulti
IsNotMulti
}
Constructors
-
IsMulti -
IsNotMulti
Values
pub fn cascade(record: Tree, cascade: Cascade) -> Tree
cascade sets the value of cascade for this Tree.
pub const default_cascade: Cascade
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_multi: Multi
pub fn from_config(config: Config) -> Tree
from_config creates a new Tree from the given configuration.
pub fn render(
model: Tree,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a Tree
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 Tree Config