gribouille / elm-table-tailwind / Table.Types

Common types.


type Selection
    = Disable
    | Free
    | Linked
    | LinkedStrict
    | Exclusive
    | ExclusiveStrict

Type of selection.

Disable

No selection.

Free

Free selection i.e. with no constraint on the parents and children rows.

Linked

Auto select all children rows if the parent is selected.

LinkedStrict

Similar to Linked but cannot unselect the children rows.

Exclusive

Parents and children rows cannot get mixed up. It is possible to select the children of different parents.

ExclusiveStrict

Similar to Exclusive but it is not possible to select the children of different parents.


type Type
    = Static
    | Dynamic

Type of data loading.


type Sort
    = Ascending
    | Descending
    | StandBy

Sort status.


type Status a
    = Loading
    | Loaded a
    | Failed String

Data loading status.