Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newbie confustion for menu documentation and demo #156

Closed
jschoch opened this issue Aug 6, 2016 · 1 comment
Closed

newbie confustion for menu documentation and demo #156

jschoch opened this issue Aug 6, 2016 · 1 comment

Comments

@jschoch
Copy link

jschoch commented Aug 6, 2016

i'm pretty new to elm, i found the menu position stuff a bit magical.

Menu.render Mdl [0] model.mdl 
  [ Menu.ripple, Menu.Bottom left ]
  [ Menu.item 
      [ Menu.onSelect MySelectMsg0 ] 
      [ text "English (US)" ]
  , Menu.item 
      [ Menu.onSelect MySelectMsg1 ] 
      [ text "français" ] 
  , Menu.item
      [ Menu.onSelect MySelectMsg2 ] 
      [ text "中文" ] 
  ]

wondering why you introduced a function not in the library to create the illusion there was something I needed to import that had "left" in it.

Menu.render Mdl [0] model.mdl 
  [ Menu.ripple, Menu.bottomLeft ]
  [ Menu.item 
      [ Menu.onSelect MySelectMsg0 ] 
      [ text "English (US)" ]
  , Menu.item 
      [ Menu.onSelect MySelectMsg1 ] 
      [ text "français" ] 
  , Menu.item
      [ Menu.onSelect MySelectMsg2 ] 
      [ text "中文" ] 
  ]

this seems less magical and I can search the docs for "bottomLeft"

@debois
Copy link
Owner

debois commented Aug 6, 2016

Well spotted, thanks. Fixed in f798dd2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants