This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 2.0.0
README Bricks Bricks.Json

Bricks.Types

Define the most used types for the Bricks module.

You generally should not access the types defined in this module directly and should prefer the constructor functions defined in the Bricks main module.

Types

type alias Brick = { tag : String , attrs : Attrs , children : Children }

Main brick type.

type alias Attrs = List Attr

List of attributes

type Children = Children (List Brick)

A list of bricks.

Must be defined like this in order to avoid recursion

type Attr = Attr String String | Classes (List String) | Id String | Value String | Action ActionType

A single attribute of a brick

type ActionType = NoOp

Represents serialized action.

module Bricks.Types exposing (..)

{-| Define the most used types for the Bricks module.

You generally should not access the types defined in this module directly and
should prefer the constructor functions defined in the Bricks main module.


# Types

@docs Brick, Attrs, Children, Attr, ActionType

-}


{-| Main brick type.
-}
type alias Brick =
    { tag : String
    , attrs : Attrs
    , children : Children
    }


{-| List of attributes
-}
type alias Attrs =
    List Attr


{-| A list of bricks.

Must be defined like this in order to avoid recursion

-}
type Children
    = Children (List Brick)


{-| A single attribute of a brick
-}
type Attr
    = Attr String String
    | Classes (List String)
    | Id String
    | Value String
    | Action ActionType


{-| Represents serialized action.
-}
type ActionType
    = NoOp