MackeyRMS/elm-ui-table/1.1.4

Table.Column

Flexible helpers for constructing Table.Columns

Primary Constructors

type alias Column ctx record msg =
{ title : String
, startingWidth : Maybe Length
, sort : Sorter record
, body : record -> Element ctx msg
, toStr : record -> String
, filter : Maybe (String -> String -> Bool)
, encode : record -> Value
, tooltip : Maybe String
}
String
-> Maybe Length
-> (record -> Posix)
-> Column { ctx | tz : Zone } record msg

SIMPLE

String
-> Maybe Length
-> (record -> Posix)
-> Column { ctx | tz : Zone } record msg

SIMPLE

float : String -> Maybe Length -> (record -> Float) -> Column ctx record msg

SIMPLE

int : String -> Maybe Length -> (record -> Int) -> Column ctx record msg

SIMPLE

string : String -> Maybe Length -> (record -> String) -> Column ctx record msg

SIMPLE

ellipsis : String -> Maybe Length -> (record -> String) -> Column ctx record msg
String
-> Maybe Length
-> (record -> Element ctx msg)
-> Column ctx record msg

SIMPLE

Extended Constructors

String
-> Maybe Length
-> (record -> Posix)
-> (record -> Element { ctx | tz : Zone } msg)
-> Column { ctx | tz : Zone } record msg

COMPLEX

String
-> Maybe Length
-> (record -> Posix)
-> Column { ctx | tz : Zone } record msg

COMPLEX

String
-> Maybe Length
-> (record -> Int)
-> (record -> Element ctx msg)
-> Column ctx record msg

COMPLEX

String
-> Maybe Length
-> (record -> String)
-> (record -> Element ctx msg)
-> (record -> Value)
-> Column ctx record msg

COMPLEX

String
-> Maybe Length
-> (record -> Element ctx msg)
-> (record -> Value)
-> Column ctx record msg

COMPLEX

Exposing Type Constructors

type Sorter record
= Sorted String (List record -> List record)
| Unsorted

Column Modifiers

(String -> String -> Bool)
-> Column ctx record msg
-> Column ctx record msg
tooltip : String -> Column ctx record msg -> Column ctx record msg
(record -> comparable)
-> Column ctx record msg
-> Column ctx record msg