Merge pull request #13 from MatthiasWinkelmann/master
Updated examples for elm 0.18
This commit is contained in:
commit
bf632ced14
|
@ -1,14 +1,12 @@
|
||||||
import Html exposing (Html, div, h1, input, text)
|
import Html exposing (Html, div, h1, input, text)
|
||||||
import Html.App as App
|
|
||||||
import Html.Attributes exposing (placeholder)
|
import Html.Attributes exposing (placeholder)
|
||||||
import Html.Events exposing (onInput)
|
import Html.Events exposing (onInput)
|
||||||
import String
|
|
||||||
import Table
|
import Table
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
main =
|
main =
|
||||||
App.program
|
Html.program
|
||||||
{ init = init presidents
|
{ init = init presidents
|
||||||
, update = update
|
, update = update
|
||||||
, view = view
|
, view = view
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
import Html exposing (Html, Attribute, div, h1, input, p, text)
|
import Html exposing (Html, Attribute, div, h1, input, p, text)
|
||||||
import Html.App as App
|
import Html.Attributes exposing (checked, style, type_)
|
||||||
import Html.Attributes exposing (checked, style, type')
|
|
||||||
import Html.Events exposing (onClick)
|
import Html.Events exposing (onClick)
|
||||||
import Html.Lazy exposing (lazy)
|
import Html.Lazy exposing (lazy)
|
||||||
import String
|
|
||||||
import Table exposing (defaultCustomizations)
|
import Table exposing (defaultCustomizations)
|
||||||
import Time exposing (Time)
|
import Time exposing (Time)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
main =
|
main =
|
||||||
App.program
|
Html.program
|
||||||
{ init = init missionSights
|
{ init = init missionSights
|
||||||
, update = update
|
, update = update
|
||||||
, view = view
|
, view = view
|
||||||
|
@ -171,7 +169,7 @@ checkboxColumn =
|
||||||
viewCheckbox : Sight -> Table.HtmlDetails Msg
|
viewCheckbox : Sight -> Table.HtmlDetails Msg
|
||||||
viewCheckbox {selected} =
|
viewCheckbox {selected} =
|
||||||
Table.HtmlDetails []
|
Table.HtmlDetails []
|
||||||
[ input [ type' "checkbox", checked selected ] []
|
[ input [ type_ "checkbox", checked selected ] []
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"summary": "helpful summary of your project, less than 80 characters",
|
"summary": "helpful summary of your project, less than 80 characters",
|
||||||
"repository": "https://github.com/user/project.git",
|
"repository": "https://github.com/user/project.git",
|
||||||
"license": "BSD3",
|
"license": "BSD3",
|
||||||
|
@ -8,9 +8,9 @@
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"elm-lang/core": "4.0.3 <= v < 5.0.0",
|
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
||||||
"elm-lang/html": "1.1.0 <= v < 2.0.0",
|
"elm-lang/html": "2.0.0 <= v < 3.0.0",
|
||||||
"evancz/elm-sortable-table": "1.0.0 <= v < 2.0.0"
|
"evancz/elm-sortable-table": "1.0.1 <= v < 2.0.0"
|
||||||
},
|
},
|
||||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue