-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Unable to add custom element in MenuItem #408
Comments
I think you can put custom content in if you don't specify a type for the menu item and set the content to the Check the code here |
Thanks. I already tried with the text property, but if I remember correctly, my HTML got escaped. I will check if leaving out the type makes a difference. |
It does, I'm using it already. |
It does work! although a new complication has arisen. I can put a TextField in the LeftNav, but clicking on it is interpreted as a click outside the nav and will close it. Anyway that's a different problem, so I'll close this issue. |
Currently it is not possible to add an element of your own choice to the LeftNav component.
MenuItems can be link (route, payload), icon, text (item, data, number) and toggle. This is only enough if you want basic router/URL functionality. The following code would enable any type of content in the LeftNav:
The text was updated successfully, but these errors were encountered: