gbr/ui/core/model

Gleam UI core type and functinos.

Types

List of attribute to render an element

Wrapper to lustre/element.Element

pub type UIAttrs(a) =
  List(attribute.Attribute(a))

Box layout of generic event a

pub type UIBox(a) {
  UIBox(
    title: element.Element(a),
    content: element.Element(a),
    footer: element.Element(a),
    attrs: List(attribute.Attribute(a)),
  )
}

Constructors

List of gbr/ui/core/model.UIBox

pub type UIBoxes(a) =
  List(UIBox(a))

Id keyed elements

To avoid conflict of element id into html.

Helper to lustre/element/keyed

pub type UIKeyed(a) =
  #(String, element.Element(a))

Option gbr/ui/core/model.UIRender

pub type UIOptRender(a) =
  option.Option(element.Element(a))

List of option gbr/ui/core/model.UIOptRender.

pub type UIOptRenders(a) =
  List(option.Option(element.Element(a)))

Alias to list of property

pub type UIProperties =
  List(#(String, String))

Alias html property <tag name="value"

pub type UIProperty =
  #(String, String)

Render element of generic event a.

Wrapper to lustre/element.Elment

pub type UIRender(a) =
  element.Element(a)

List of gbr/ui.{type UIRender}.

pub type UIRenders(a) =
  List(element.Element(a))

Alias to switch by identification

This type is a helper to lustre.attribute.classes

pub type UISwitch =
  #(String, Bool)
pub type UISwitches =
  List(#(String, Bool))
Search Document