@@ -0,0 +1,228 @@
1+module Main exposing (main)
4+import Element exposing (..)
5+import Element.Background as Background
6+import Element.Border as Border
7+import Element.Input exposing (labelAbove, multiline)
8+import Html exposing (Html)
9+import Html.Events exposing (onClick)
27+update : Msg -> Model -> Model
31+ { model | count = model.count + 1 }
34+ { model | count = model.count - 1 }
41+ "orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it?"
45+ """orem Ipsum is simply dummy text of the printing
46+and typesetting industry. Lorem Ipsum has been the industry's
47+standard dummy text ever since the 1500s, when an unknown
48+printer took a galley of type and scrambled it to make a type specimen book.
49+It has survived not only five centuries, but also the leap into electronic
52+, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it?"""
55+view : Model -> Html Msg
70+ [ multiline [ spacing 3 ]
71+ { onChange = MLChanged
73+ , placeholder = Nothing
78+ , Background.color (Element.rgb 0.5 0.5 0.5)
81+ text "Default height"
83+ , multiline [ spacing 0, padding 10, height shrink ]
84+ { onChange = MLChanged
86+ , placeholder = Nothing
90+ [ Background.color (Element.rgb 0.5 0.5 0.5)
94+ text "Shrink - no nl"
96+ , multiline [ spacing 3, height shrink ]
97+ { onChange = MLChanged
98+ , text = testtxtnewlines
99+ , placeholder = Nothing
100+ , spellcheck = False
101+ , label = labelAbove [ Background.color (Element.rgb 0.5 0.5 0.5), width (px 100) ] <| text "Shrink - w/nl"
104+ , row [ width fill, height (px 400), spacing 40 ]
105+ [ multiline [ spacing 3 ]
106+ { onChange = MLChanged
108+ , placeholder = Nothing
109+ , spellcheck = False
113+ , Background.color (Element.rgb 0.5 0.5 0.5)
116+ text "Default height"
118+ , multiline [ spacing 0, padding 10, height shrink ]
119+ { onChange = MLChanged
121+ , placeholder = Nothing
122+ , spellcheck = False
125+ [ Background.color (Element.rgb 0.5 0.5 0.5)
129+ text "Shrink - no nl"
131+ , multiline [ spacing 3, height shrink ]
132+ { onChange = MLChanged
133+ , text = testtxtnewlines
134+ , placeholder = Nothing
135+ , spellcheck = False
136+ , label = labelAbove [ Background.color (Element.rgb 0.5 0.5 0.5), width (px 100) ] <| text "Shrink - w/nl"
145+ [ multiline [ padding 20, spacing 20, height fill ]
146+ { onChange = MLChanged
148+ , placeholder = Nothing
149+ , spellcheck = False
153+ , Background.color (Element.rgb 0.5 0.5 0.5)
156+ text "Default height"
158+ , multiline [ spacing 0, padding 10, height shrink ]
159+ { onChange = MLChanged
161+ , placeholder = Nothing
162+ , spellcheck = False
165+ [ Background.color (Element.rgb 0.5 0.5 0.5)
169+ text "Shrink - no nl"
171+ , multiline [ spacing 3, height shrink ]
172+ { onChange = MLChanged
173+ , text = testtxtnewlines
174+ , placeholder = Nothing
175+ , spellcheck = False
176+ , label = labelAbove [ Background.color (Element.rgb 0.5 0.5 0.5), width (px 100) ] <| text "Shrink - w/nl"
185+ [ multiline [ spacing 3, height fill ]
186+ { onChange = MLChanged
188+ , placeholder = Nothing
189+ , spellcheck = False
193+ , Background.color (Element.rgb 0.5 0.5 0.5)
196+ text "Default height"
198+ , multiline [ spacing 0, padding 10, height shrink ]
199+ { onChange = MLChanged
201+ , placeholder = Nothing
202+ , spellcheck = False
205+ [ Background.color (Element.rgb 0.5 0.5 0.5)
209+ text "Shrink - no nl"
211+ , multiline [ spacing 3, height shrink ]
212+ { onChange = MLChanged
213+ , text = testtxtnewlines
214+ , placeholder = Nothing
215+ , spellcheck = False
216+ , label = labelAbove [ Background.color (Element.rgb 0.5 0.5 0.5), width (px 100) ] <| text "Shrink - w/nl"
222+main : Program () Model Msg
225+ { init = initialModel