mirror of
https://github.com/typeable/elm-ui.git
synced 2024-11-30 09:56:23 +03:00
Merge pull request #53 from sturgman/master
Three fixes to the documentation of Element.Input.
This commit is contained in:
commit
b3eb8bf611
@ -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")
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user