gribouille/elm-table/5.3.0

Table.Types

Common types.

= 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.

type Action
= SearchInput
| SearchEnter
| ChangeByPage
| ChangePageIndex
| ShowColumn
| ShowSubColumn
| Expand
| ShowSubtable
| SortColumn
| SortSubColumn
| SelectColumn
| SelectRow
| OpenMenu

List of internal action:

  • SearchInput: input character in the search input text
  • SearchEnter: enter key down in the search input text
  • ChangeByPage: change the number of items by page
  • ChangePageIndex: change the page number
  • ShowColumn: show/hide column
  • ShowSubColumn: show/hide sub column
  • Expand: expand a row
  • ShowSubtable: show the subtable
  • SortColumn: sort a column
  • SortSubColumn: sort a sub column
  • SelectColumn: check all row
  • SelectRow: check one row
  • OpenMenu: open a dropdown menu