@@ -0,0 +1,89 @@
1+module Main exposing (main)
4+import Element exposing (..)
5+import Element.Input exposing (labelLeft, multiline)
6+import Html exposing (Html)
7+import Html.Events exposing (onClick)
25+update : Msg -> Model -> Model
29+ { model | count = model.count + 1 }
32+ { model | count = model.count - 1 }
39+ "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?"
43+ """orem Ipsum is simply dummy text of the printing
44+and typesetting industry. Lorem Ipsum has been the industry's
45+standard dummy text ever since the 1500s, when an unknown
46+printer took a galley of type and scrambled it to make a type specimen book.
47+It has survived not only five centuries, but also the leap into electronic
49+, 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?"""
52+view : Model -> Html Msg
60+ { onChange = MLChanged
62+ , placeholder = Nothing
64+ , label = labelLeft [ width (px 200) ] <| text "Default height"
66+ , multiline [ height shrink ]
67+ { onChange = MLChanged
69+ , placeholder = Nothing
71+ , label = labelLeft [ width (px 200) ] <| text "Shrink - no nl"
73+ , multiline [ height shrink ]
74+ { onChange = MLChanged
75+ , text = testtxtnewlines
76+ , placeholder = Nothing
78+ , label = labelLeft [ width (px 200) ] <| text "Shrink - w/nl"
83+main : Program () Model Msg
86+ { init = initialModel