framework/front

Types

pub type Area {
  Area(
    name: String,
    flow: css.Flow,
    pin: css.Pin,
    style: List(css.Style),
  )
}

Constructors

pub type Cell {
  Flow
  Span(cols: Int, rows: Int)
  At(col: Int, row: Int, span: CellSpan)
}

Constructors

  • Flow
  • Span(cols: Int, rows: Int)
  • At(col: Int, row: Int, span: CellSpan)
pub type CellSpan {
  CellSpan(cols: Int, rows: Int)
}

Constructors

  • CellSpan(cols: Int, rows: Int)
pub type Frame(service, block) {
  Frame(
    areas: List(Area),
    placements: List(Placement(service, block)),
    cols: List(track.Track),
    rows: List(track.Track),
    template: List(List(String)),
  )
}

Constructors

pub type Layout(service, block) {
  Layout(
    sp: Frame(service, block),
    pc: option.Option(Frame(service, block)),
    tablet: option.Option(Frame(service, block)),
    reads: List(service),
  )
}

Constructors

pub type Page(service, block) {
  Page(
    of: option.Option(service),
    layout: Layout(service, block),
    theme: option.Option(String),
    sp: Frame(service, block),
    pc: option.Option(Frame(service, block)),
    tablet: option.Option(Frame(service, block)),
    reads: List(service),
  )
}

Constructors

pub type Placement(service, block) {
  Fixed(area: String, block: block, cell: Cell)
  Widget(
    area: String,
    name: String,
    of: service,
    render: Render(block),
  )
}

Constructors

  • Fixed(area: String, block: block, cell: Cell)
  • Widget(
      area: String,
      name: String,
      of: service,
      render: Render(block),
    )
pub type Render(block) {
  One(block: block)
  ByKind(by: String, table: List(#(String, block)))
}

Constructors

  • One(block: block)
  • ByKind(by: String, table: List(#(String, block)))
pub type Target(service, attached) {
  Of(service)
  Entry(attached)
}

Constructors

  • Of(service)
  • Entry(attached)

Values

pub const default_sp_cols: List(track.Track)
pub const default_wide_cols: List(track.Track)
pub fn resolved_cols(
  frame: Frame(service, block),
  at: css.Breakpoint,
) -> List(track.Track)
pub fn resolved_template(
  sp: Frame(service, block),
  frame: Frame(service, block),
  at: css.Breakpoint,
) -> List(List(String))
✨ Search Document