gribouille/elm-table/5.1.1

NOTE: the latest version is 5.3.0

Table.Config

Configuration of the table.

type alias Config a b msg =
Config a b msg

Table's configuration (opaque).

Constructors

(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).

(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).

Customizations

withExpand : Column a msg -> Config a b msg -> Config a b msg

Add an full-width expandable row.

withSelection : Selection -> Config a b msg -> Config a b msg

Enable the selection (see Selection type for the different logics).

withSelectionFree : Config a b msg -> Config a b msg

Enable the selection with the free logic (see Selection for more details).

withSelectionLinked : Config a b msg -> Config a b msg

Enable the selection with the linked logic (see Selection for more details).

withSelectionLinkedStrict : Config a b msg -> Config a b msg

Enable the selection with the linked logic (see Selection for more details).

withSelectionExclusive : Config a b msg -> Config a b msg

Enable the selection with the exclusive logic (see Selection for more details).

withSelectionExclusiveStrict : Config a b msg -> Config a b msg

Enable the selection with the strict excluive logic (see Selection for more details).

withPagination : List Int -> Int -> Config a b msg -> Config a b msg

Enable the pagination and define the page sizes and the detault page size.

withProgressiveLoading : Int -> Int -> Config a b msg -> Config a b msg

Enable the progressive loading pagination (not implemented).

withToolbar : List (Html msg) -> Config a b msg -> Config a b msg

Add a custom toolbar.

withErrorView : (String -> Html msg) -> Config a b msg -> Config a b msg

Define a specific error message.

(a -> List b)
-> (b -> String)
-> List (Column b msg)
-> Maybe (Column b msg)
-> Config a () msg
-> Config a b msg

Define a subtable.