Created
August 9, 2016 21:13
-
-
Save knewter/732aef7d896f0d0b075a2b304506c9b7 to your computer and use it in GitHub Desktop.
Introduction to elm-mdl - 3
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
import Material.Layout as Layout | |
view : Model -> Html Msg | |
view model = | |
Layout.render Mdl | |
model.mdl | |
[ Layout.fixedHeader | |
] | |
{ header = [ h1 [ style [ ( "padding", "2rem" ) ] ] [ text "Counter" ] ] | |
, drawer = [] | |
, tabs = ( [], [] ) | |
, main = [ viewBody model ] | |
} | |
-- This used to be the `view` | |
viewBody : Model -> Html Msg | |
viewBody model = | |
-- ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment