A datatable.
See an example of this library in action here.
{ label : String
, key : String
, render : a -> String
, editRender : a -> Basics.Int -> Html msg
, sort : a -> String
, filter : a -> String -> Basics.Bool
, update : a -> String -> a
}
Define a table column.
( String, String )
Represents a filter.
{ columns : List (Column msg a)
, data : Array a
, sorting : List Sorting
, filters : List Filter
, dragging : Maybe String
, editing : List Basics.Int
, selections : List Basics.Int
, page : Basics.Int
, options : Options
, key : String
}
Table state.
Table signals.
( String, Direction )
Represents a sorting direction.
noFiltering : a -> String -> Basics.Bool
No-op function for diabled filtering. This will also go away one day.
noSorting : a -> String
No-op function for disabled sorting. This will go away one day.
init : String -> List (Column msg a) -> List a -> Options -> Model msg a
Create table state.
update : Msg -> Model msg a -> Model msg a
Update table state.
view : Model msg a -> (Msg -> msg) -> Html msg
Render table.