@@ -5,7 +5,7 @@ import Element exposing (..)
5import Element.Background as Background
5import Element.Background as Background
6import Element.Border as Border
6import Element.Border as Border
7import Element.Font as Font
7import Element.Font as Font
8−import Element.Input exposing (labelAbove, multiline)
8+import Element.Input as Input exposing (labelAbove, multiline)
9import Html exposing (Html)
9import Html exposing (Html)
10import Html.Events exposing (onClick)
10import Html.Events exposing (onClick)
@@ -38,6 +38,18 @@ update msg model =
42+ Input.placeholder [ Font.color (rgb 0.2 0.2 0.8) ] (text "My placeholder...")
45+examplePlaceholderLong =
46+ Input.placeholder [ Font.color (rgb 0.2 0.2 0.8) ] (text "My placeholderMy placeholderMy placeholderMy placeholderMy placeholderMy placeholderMy placeholderMy placeholder...")
50+ Background.color (rgb 0 1 0)
42 """orem Ipsum is simply dummy text of the printing
54 """orem Ipsum is simply dummy text of the printing
43and typesetting industry. Lorem Ipsum has been the industry's
55and typesetting industry. Lorem Ipsum has been the industry's
@@ -81,7 +93,7 @@ view model =
83 [ rowTest "Heights"
95 [ rowTest "Heights"
84− [ multiline []
96+ [ multiline [ background ]
85 { onChange = MLChanged
97 { onChange = MLChanged
86 , text = testtxt
98 , text = testtxt
87 , placeholder = Nothing
99 , placeholder = Nothing
@@ -89,7 +101,7 @@ view model =
89 , label =
101 , label =
90 label "Default"
102 label "Default"
92− , multiline [ height shrink ]
104+ , multiline [ background, height shrink ]
93 { onChange = MLChanged
105 { onChange = MLChanged
94 , text = testtxt
106 , text = testtxt
95 , placeholder = Nothing
107 , placeholder = Nothing
@@ -97,7 +109,7 @@ view model =
97 , label =
109 , label =
98 label "Height shrink"
110 label "Height shrink"
100− , multiline [ height fill ]
112+ , multiline [ background, height fill ]
101 { onChange = MLChanged
113 { onChange = MLChanged
102 , text = testtxt
114 , text = testtxt
103 , placeholder = Nothing
115 , placeholder = Nothing
@@ -105,7 +117,7 @@ view model =
105 , label =
117 , label =
106 label "Height Fill"
118 label "Height Fill"
108− , multiline [ height (px 200) ]
120+ , multiline [ background, height (px 200) ]
109 { onChange = MLChanged
121 { onChange = MLChanged
110 , text = testtxt
122 , text = testtxt
111 , placeholder = Nothing
123 , placeholder = Nothing
@@ -197,6 +209,74 @@ view model =
197 , label = label "Height 200, Padding 0"
209 , label = label "Height 200, Padding 0"
212+ , rowTest "Placeholders"
214+ { onChange = MLChanged
216+ , placeholder = Just examplePlaceholder
217+ , spellcheck = False
221+ , multiline [ height shrink ]
222+ { onChange = MLChanged
224+ , placeholder = Just examplePlaceholder
225+ , spellcheck = False
227+ label "Height shrink"
229+ , multiline [ height fill ]
230+ { onChange = MLChanged
232+ , placeholder = Just examplePlaceholder
233+ , spellcheck = False
237+ , multiline [ height (px 200) ]
238+ { onChange = MLChanged
240+ , placeholder = Just examplePlaceholder
241+ , spellcheck = False
243+ label "Height 200px"
246+ , rowTest "Long Placeholders"
248+ { onChange = MLChanged
250+ , placeholder = Just examplePlaceholderLong
251+ , spellcheck = False
255+ , multiline [ height shrink ]
256+ { onChange = MLChanged
258+ , placeholder = Just examplePlaceholderLong
259+ , spellcheck = False
261+ label "Height shrink"
263+ , multiline [ height fill ]
264+ { onChange = MLChanged
266+ , placeholder = Just examplePlaceholderLong
267+ , spellcheck = False
271+ , multiline [ height (px 200) ]
272+ { onChange = MLChanged
274+ , placeholder = Just examplePlaceholderLong
275+ , spellcheck = False
277+ label "Height 200px"