git.iko.soy/typeable/elm-ui
on master help sign in
Merge pull request #53 from sturgman/master

Three fixes to the documentation of Element.Input.

commitb3eb8bf6119e5d669e633a30725b838b1afb7d9e authorMatthew Griffith <mdg.griffith@gmail.com> dateThu 18 Oct 2018, 08:30 (8 years ago) parentffb1257bd35c8f
1 file changed+3−14
src/Element/Input.elm+3−14
src/Element/Input.elm+3−14
@@ -352,7 +352,7 @@ defaultThumb =
352352 Input.defaultThumb
353353 }
354354
355−The `thumb` is the icon that you can move around.
355+`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.
356356
357357The slider can be vertical or horizontal depending on the width/height of the slider.
358358
@@ -1297,20 +1297,9 @@ optionWith val view =
12971297 ]
12981298 { onChange = ChooseLunch
12991299 , selected = Just model.lunch
1300− , label = Input.labelAbove (text "Lunch")
1300+ , label = Input.labelAbove [] (text "Lunch")
13011301 , options =
1302− [ Input.styledChoice Burrito <|
1303− \selected ->
1304− Element.row
1305− [ spacing 5 ]
1306− [ el None [] <|
1307− if selected then
1308− text ":D"
1309−
1310− else
1311− text ":("
1312− , text "burrito"
1313− ]
1302+ [ Input.option Burrito (text "Burrito")
13141303 , Input.option Taco (text "Taco!")
13151304 , Input.option Gyro (text "Gyro")
13161305 ]