-
Notifications
You must be signed in to change notification settings - Fork 132
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
Allow Change of Menu Icon #61
Comments
Looks good! Could you submit a PR? |
"It seems you do not have permission to push your changes to this [image: Inline image 1] On Tue, Jun 21, 2016 at 11:39 AM, Søren Debois notifications@github.com
|
GitHub has a very neat way to do this, but you have to do it in a particular way. See the GitHub docs here. |
Added option to set menu icon
Added option to set menu icon
Do you have time to upgrade the .txt file to an actual PR? |
Very sorry. I live in Cleveland and our team just won the basketball On Thu, Jun 23, 2016 at 6:31 AM, Søren Debois notifications@github.com
|
Well, congratulations, then :) I'll take a look at your PR. |
Closed by #65. |
debois,
Needed to have multiple menus on a page so needed to be able to change what icon displays for them. Attached my version of Menu.elm with the changes, basically just imported Icon, setup an option and changed line 347 to set the Icon as whatever was sent in config.
Menu.elm.txt
Usage:
"
userMenu : Models.Model -> Html Messages.Msg
userMenu model =
div []
[
Menu.render MDL [0] model.mdl
[ Menu.bottomRight
, Menu.ripple
, Menu.icon "account_circle"
]
[ Menu.Item False True <| div [] [ text "My Profile" ]
, Menu.Item False True <| div [] [ text "Log In" ]
]
]
"
The text was updated successfully, but these errors were encountered: