primait / pyxis-components / Prima.Pyxis.Form.Grid

Configuration


type Grid msg

Represent the Grid.


type Row msg

Represents a Row which is the child of a Grid.


type alias Children msg =
List (Html msg)

Convenient alias for a List (Html msg).

Configuration Methods

create : Grid msg

Creates a Grid.

emptyRow : Row msg

Creates an empty Row.

addRow : Row msg -> Grid msg -> Grid msg

Adds a Row to the Grid.

Rendering

render : Grid msg -> List (Html msg)

Renders the Grid.

Options

withOneColumn : Children msg -> Row msg

Adds one Column to a row.

withTwoColumns : Children msg -> Children msg -> Row msg

Creates a Row with 2 Columns.

withThreeColumns : Children msg -> Children msg -> Children msg -> Row msg

Creates a Row with 3 Columns.

withFourColumns : Children msg -> Children msg -> Children msg -> Children msg -> Row msg

Creates a Row with 4 Columns.