Created
August 9, 2016 21:18
-
-
Save knewter/31dae8acf7ae7d126ea834d2e8065a2e to your computer and use it in GitHub Desktop.
Introduction to elm-mdl - 10
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 = | |
Material.Scheme.topWithScheme Color.Teal Color.LightGreen <| | |
Layout.render Mdl | |
model.mdl | |
[ Layout.fixedHeader | |
, Layout.selectedTab model.selectedTab | |
, Layout.onSelectTab SelectTab | |
] | |
{ header = [ h1 [ style [ ( "padding", "2rem" ) ] ] [ text "Counter" ] ] | |
, drawer = [] | |
, tabs = ( [ text "Milk", text "Oranges" ], [ Color.background (Color.color Color.Teal Color.S400) ] ) | |
, main = [ viewBody model ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment