uncover-co / elm-widgets-alpha / W.Table

view : List (Attribute msg a) -> List (Column msg a) -> List a -> Html msg

Columns

column : List (ColumnAttribute msg a) -> { label : String, content : a -> Html msg } -> Column msg a

string : List (ColumnAttribute msg a) -> { label : String, value : a -> String } -> Column msg a

int : List (ColumnAttribute msg a) -> { label : String, value : a -> Basics.Int } -> Column msg a

float : List (ColumnAttribute msg a) -> { label : String, value : a -> Basics.Float } -> Column msg a

bool : List (ColumnAttribute msg a) -> { label : String, value : a -> Basics.Bool } -> Column msg a


type Column msg a

Column Attributes

alignRight : ColumnAttribute msg a

alignCenter : ColumnAttribute msg a

width : Basics.Int -> ColumnAttribute msg a

relativeWidth : Basics.Float -> ColumnAttribute msg a

largeScreenOnly : ColumnAttribute msg a

columnHtmlAttrs : List (Html.Attribute msg) -> ColumnAttribute msg a


type ColumnAttribute msg a

Groups

groupBy : (a -> String) -> Attribute msg a

groupValue : (String -> List a -> Html msg) -> ColumnAttribute msg a

groupLabel : ColumnAttribute msg a

Table Attributes

highlight : (a -> Basics.Bool) -> Attribute msg a

Actions

onClick : (a -> msg) -> Attribute msg a

onMouseEnter : (a -> msg) -> Attribute msg a

onMouseLeave : msg -> Attribute msg a

Html

htmlAttrs : List (Html.Attribute msg) -> Attribute msg a

noAttr : Attribute msg a


type Attribute msg a