novdom/component/container
Types
pub type Alignment {
Top
Bottom
Left
Right
Center
TopLeft
TopRight
BottomLeft
BottomRight
}
Constructors
-
Top -
Bottom -
Left -
Right -
Center -
TopLeft -
TopRight -
BottomLeft -
BottomRight
pub type Direction {
VerticalDirection
HorizontalDirection
}
Constructors
-
VerticalDirection -
HorizontalDirection
pub type Placement {
Gap(String)
EvenSpacing
BetweenSpacing
AroundSpacing
Start
End
Middle
}
Constructors
-
Gap(String) -
EvenSpacing -
BetweenSpacing -
AroundSpacing -
Start -
End -
Middle
Functions
pub fn hscroll(
alignment: Alignment,
placement: Placement,
children: List(Component),
) -> Component
pub fn hstack(
alignment: Alignment,
placement: Placement,
children: List(Component),
) -> Component
pub fn stack(
direction: Direction,
alignment: Alignment,
placement: Placement,
scrolling: Scroll,
children: List(Component),
) -> Component
pub fn vscroll(
alignment: Alignment,
placement: Placement,
children: List(Component),
) -> Component
pub fn vstack(
alignment: Alignment,
placement: Placement,
children: List(Component),
) -> Component