elm package cache
Packages
Reroutes
About
lamdera.com
QiTASC
/
hatchinq
/
25.2.1
NOTE: the latest version is
29.0.0
README
About
Versions
Source
Modules
Hatchinq.DataTable
Exposed
type
alias
Config
item msg
=
{ theme
:
Theme
, lift
:
Message
item msg -> msg
}
type
alias
InfiniteView
msg
=
{ loadingTop
:
Maybe
Int
, loadingBottom
:
Maybe
Int
, loadExtraItems
:
LoadingDirection
->
Maybe
{ loadCount
:
Int
, excessCount
:
Int
, loadMsg
:
msg
}
}
type
LoadingDirection
=
Up
|
Down
type
Message
item msg
type
alias
State
item
=
{ hoveredHeader
:
Maybe
Int
, sort
:
Sort
item
, scrollPos
:
ScrollPos
, firstVisible
:
Maybe
Int
, lastVisible
:
Maybe
Int
, rowHeights
:
Dict
String
Int
}
type
alias
View
item msg
=
{ columns
:
List
(
Column
item msg)
, items
:
List
item
, state
:
State
item
}
column
:
Element
msg ->
Length
-> (
Int
-> item ->
Element
msg) ->
Column
item msg
configure
:
Config
item msg
->
List
(
Attribute
(
InternalConfig
item msg))
->
View
item msg
->
Element
msg
expansion
:
(item ->
Bool
)
-> (item ->
Bool
-> msg)
-> (item ->
Element
msg)
->
Attribute
(
InternalConfig
item msg)
infinite
:
InfiniteView
msg ->
Attribute
(
InternalConfig
item msg)
init
:
State
item
lightenOrDarkenOnHover
:
Float
->
Attribute
(
InternalConfig
item msg)
plain
:
Attribute
(
InternalConfig
item msg)
rowColor
:
(item ->
Maybe
Color
) ->
Attribute
(
InternalConfig
item msg)
selection
:
(item ->
Bool
)
-> (item ->
Bool
-> msg)
-> (
Bool
-> msg)
->
Attribute
(
InternalConfig
item msg)
sortableColumn
:
Element
msg
->
Length
-> (
Int
-> item ->
Element
msg)
-> (
List
item ->
List
item)
->
Column
item msg
externalSortableColumn
:
Element
msg
->
Length
-> (
Int
-> item ->
Element
msg)
-> (
Int
->
Maybe
Bool
-> msg)
->
Column
item msg
update
:
Message
item msg ->
State
item -> (
State
item,
Cmd
msg )
calculateRowHeight
:
Int
->
String
->
Cmd
(
Message
item msg)
Use this to inform the table that the height of a row has changed
README
About
67 versions
Source
Modules
Examples
Hatchinq.AppBar
Hatchinq.Attribute
Hatchinq.Button
Hatchinq.Card
Hatchinq.Checkbox
Hatchinq.Chip
Hatchinq.Color
Hatchinq.DataTable
Hatchinq.Divider
Hatchinq.DropDown
Hatchinq.IconButton
Hatchinq.List
Hatchinq.Menu
Hatchinq.Paginator
Hatchinq.ProgressIndicator
Hatchinq.RadioButton
Hatchinq.RoundImage
Hatchinq.SidePanel
Hatchinq.Snackbar
Hatchinq.TabBar
Hatchinq.TextField
Hatchinq.Theme
Hatchinq.Tree