Merge pull request #53 from sturgman/master

Three fixes to the documentation of Element.Input.
This commit is contained in:
Matthew Griffith 2018-10-18 08:30:08 -04:00 committed by GitHub
commit b3eb8bf611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,7 +352,7 @@ defaultThumb =
Input.defaultThumb
}
The `thumb` is the icon that you can move around.
`Element.behindContent` is used to render the track of the slider. Without it, no track would be rendered. The `thumb` is the icon that you can move around.
The slider can be vertical or horizontal depending on the width/height of the slider.
@ -1297,20 +1297,9 @@ optionWith val view =
]
{ onChange = ChooseLunch
, selected = Just model.lunch
, label = Input.labelAbove (text "Lunch")
, label = Input.labelAbove [] (text "Lunch")
, options =
[ Input.styledChoice Burrito <|
\selected ->
Element.row
[ spacing 5 ]
[ el None [] <|
if selected then
text ":D"
else
text ":("
, text "burrito"
]
[ Input.option Burrito (text "Burrito")
, Input.option Taco (text "Taco!")
, Input.option Gyro (text "Gyro")
]