[elm-discuss] Re: mdl layout

2016-08-20 Thread Rex van der Spuy
> It only works when it is the top-most > element in your app. > That makes sense :) I've been playing around with 7.4/5 all week and it's a delightful experience! What so nice is that it's effortless to mix and match elm-mdl components with elm-html elements. -- You received this message

[elm-discuss] Re: mdl layout

2016-08-20 Thread debois
It only works when it is the top-most element in your app. It seems a lot of people have trouble getting started with Layout. Could someone open an issue saying that the demo should have a more explicit code sample? PS. Remember subscriptions and init—if your layout doesn't resize right, that's

[elm-discuss] Re: mdl layout

2016-08-20 Thread Rex van der Spuy
Yes, that video it's excellent - I didn't understand how layout worked until I watched it either. On a side-note: Is layout just applicable to the entire viewport window? I tried using it inside an MDL grid cell and it seemed to get confused about how wide things should be. -- You received thi

[elm-discuss] Re: mdl layout

2016-08-20 Thread surfncode
Thanks, I'm watching it right now. Helpful indeed ! -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, v

[elm-discuss] Re: mdl layout

2016-08-12 Thread debois
I can recommend Josh's video :) -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.g

[elm-discuss] Re: mdl layout

2016-08-09 Thread josh
Hey! I just posted a video showing elm-mdl and covering Layout specifically! https://medium.com/@dailydrip/introduction-to-using-material-design-in-elm-dc2320087410#.c2e784xt3 More elm-mdl content coming this week on http://dailydrip.com/topics/elm. So far my take is: elm-mdl is freaking aw

[elm-discuss] Re: mdl layout

2016-08-09 Thread surfncode
Thanks for your answer. It does make sense yes. I'm gonna study the source code of the mdl demo for further details. I haven't tried the layout yet. Only the tabs. I'll see how it goes. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubsc

[elm-discuss] Re: mdl layout

2016-08-09 Thread Robert Walter
I use different layouts in my app, depending on what page is selected. Something like this: let layoutContent = if ((indexToView app.viewSelected) == Overview) then layoutOverview else layoutDefault in Layout.render Mdl app.mdl (layoutProperties app