Update constraints and code for 0.18
This commit is contained in:
parent
86377edfcc
commit
8206138b89
|
@ -10,8 +10,8 @@
|
|||
"Table"
|
||||
],
|
||||
"dependencies": {
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0",
|
||||
"elm-lang/html": "1.1.0 <= v < 2.0.0"
|
||||
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
||||
"elm-lang/html": "2.0.0 <= v < 3.0.0"
|
||||
},
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
"elm-version": "0.18.0 <= v < 0.19.0"
|
||||
}
|
||||
|
|
|
@ -476,7 +476,7 @@ toHeaderInfo (State sortName isReversed) toMsg { name, sorter } =
|
|||
onClick : String -> Bool -> (State -> msg) -> Attribute msg
|
||||
onClick name isReversed toMsg =
|
||||
E.on "click" <| Json.map toMsg <|
|
||||
Json.object2 State (Json.succeed name) (Json.succeed isReversed)
|
||||
Json.map2 State (Json.succeed name) (Json.succeed isReversed)
|
||||
|
||||
|
||||
viewRow : (data -> String) -> List (ColumnData data msg) -> (data -> List (Attribute msg)) -> data -> ( String, Html msg )
|
||||
|
|
Loading…
Reference in New Issue