Created
August 9, 2016 21:14
-
-
Save knewter/be7ebda78af2775f91e813cf518e0740 to your computer and use it in GitHub Desktop.
Introduction to elm-mdl - 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view : Model -> Html Msg | |
view model = | |
Layout.render Mdl | |
model.mdl | |
[ Layout.fixedHeader | |
] | |
{ header = [ h1 [ style [ ( "padding", "2rem" ) ] ] [ text "Counter" ] ] | |
, drawer = [] | |
, tabs = ( [ text "Milk", text "Oranges" ], [] ) | |
, main = [ viewBody model ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment