Full featured table.
Internal.Data.Model a
Model of component (opaque).
Internal.Data.Row a
Table's row (opaque).
Internal.Data.Rows a
List of table's rows (opaque).
Internal.State.RowID
Unique ID of one row.
init : Config a b msg -> Model a
Initialize the table's model.
loaded : Model a -> List a -> Basics.Int -> Model a
Load the data in the model with the total number of rows if the data are incomplete.
loadedDynamic : List a -> Basics.Int -> Model a -> Model a
Similar to loaded
. Load partial data in the model and specified the total
number of rows.
loadedStatic : List a -> Model a -> Model a
Similar to loaded
with all data so List.length rows == total
.
loading : Model a -> Model a
Data loading is in progress.
failed : Model a -> String -> Model a
Data loading has failed.
progressive : Model a -> Model a
Data loading is in progress for the progressive loading mode.
Internal.Column.Pipe msg
Pipe for the table's messages to change the state.
Internal.State.State
Internal table's state.
Internal.State.Pagination
Pagination values.
pagination : Model a -> Pagination
Get the pagination values from model.
selected : Model a -> List RowID
Return the list of selected rows.
subSelected : Model a -> List RowID
Return the list of selected rows in the sub tables.
get : Model a -> List a
Get the data from the model.
Internal.Config.Config a b msg
Table's configuration (opaque).
Internal.Column.Column a msg
Column's configuration (opaque).
static : (Model a -> msg) -> (a -> String) -> List (Column a msg) -> Config a () msg
Define a configuration for a table with static data (i.e. with all loaded data at once).
dynamic : (Model a -> msg) -> (Model a -> msg) -> (a -> String) -> List (Column a msg) -> Config a () msg
Define a configuration for a table with dynamic data (i.e. with paginated loaded data).
view : Config a b msg -> Model a -> Html msg
Table's view.
subscriptions : Config a b msg -> Model a -> Platform.Sub.Sub msg
Table's subscriptions.