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

Added support for applying CSS classes to menu items #56

Merged
merged 2 commits into from
Jan 5, 2021

Conversation

jadurda
Copy link
Contributor

@jadurda jadurda commented Sep 1, 2020

This accepts a class property on menu items that allows specifying CSS classes either as a string or by function similar to .disabled

Allows specifying CSS classes to each menu item via its class property which accepts either a string or a function
…tems

Added support for applying CSS classes to menu items
@patorjk patorjk merged commit 1386c50 into patorjk:master Jan 5, 2021
@patorjk
Copy link
Owner

patorjk commented Jan 5, 2021

Thank you for submitting this, sorry it took so long to review. I've merged it in though will be changing "class" to "className" to make it more consistent with how other JS libraries refer to CSS class names (class is also a reserved word in JS so even though it works it could cause other issues).

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

Successfully merging this pull request may close these issues.

None yet

2 participants