QiTASC/hatchinq/25.0.0

NOTE: the latest version is 29.0.0

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 :
-> Maybe
{ loadCount : Int
, excessCount : Int
, loadMsg : msg
}
}
= 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
Config item msg
-> List (Attribute (InternalConfig item msg))
-> View item msg
-> Element msg
(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)
(item -> Bool)
-> (item -> Bool -> msg)
-> (Bool -> msg)
-> Attribute (InternalConfig item msg)
Element msg
-> Length
-> (Int -> item -> Element msg)
-> (List item -> List item)
-> Column item msg
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