NoRedInk/noredink-ui/5.2.0

NOTE: this package is not compatible with Elm 0.19.1

Nri.Ui.Table.V1

type Column data msg

Closed representation of how to render the header and cells of a column in the table

{ header : Html msg
, view : data -> Html msg
, width : Int
}
-> Column data msg

A column that renders however you want it to

{ header : String
, value : data -> String
, width : Int
}
-> Column data msg

A column that renders some aspect of a value as text

styles : Styles Never CssClasses msg
view : List (Column data msg) -> List data -> Html msg

Displays a table of data based on the provided column definitions

viewWithoutHeader : List (Column data msg) -> List data -> Html msg

Displays a table of data without a header row

viewLoading : List (Column data msg) -> Html msg

Display a table with the given columns but instead of data, show blocked out text with an interesting animation. This view lets the user know that data is on its way and what it will look like when it arrives.

viewLoadingWithoutHeader : List (Column data msg) -> Html msg

Display the loading table without a header row

keyframes : List Keyframe
keyframeStyles : Html msg