-
Notifications
You must be signed in to change notification settings - Fork 892
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
Working md-menu example #4161
Comments
Oof. The example is quite vauge and I couldn't understand it either. I hope someone makes documentation for it. Soon. |
I added all the createRef() stuff from the Lit docs so that example can work and it seems to be doing something with no error, even the "show" attribute shows up in the dev console on |
Heya, sorry that's a bit vague – it's a balance to keep JSdoc concise for such a complex component. We obviously failed here 🤪 We are currently working on our demo / docs site, which should have more complete documentation with the Lit accoutrements that are littered in the JSdoc without explanation. Here is a working example. There were a few regressions in the latest release that are fixed in the pre.7 release https://lit.dev/playground/#gist=28fb863d2b2c3387f69b0cf2205a57b2 |
Thanks for the example @e111077 ! Will wait for pre.7 before trying again though. |
Definitely follow #4141 to get notified |
Woohoo! this is great news! 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 |
Anyone have a non typescript example for md-menu? Got back to trying it again and still can't get this thing to work (just doesn't show up). |
@treeder here is a JS approach https://lit.dev/playground/#gist=c558a9e054344de9495c007a9a6747a2 |
Heads up, the docs for md-menu are on this sprint for me |
woohoo! 🎉🎉🎉 |
Odd, it should try to stay in bounds. Have you tried setting menu-corner="START_END"? |
You might also want to set anchor-corner="END_END" the default is a default for a button menu. For this you should be customizing the corners |
Closing since we have menu doc planning tracked internally, it should pop up soon! |
When I use the example directly from the code, the menu doesn't show up, anyone have a working example they can share?
The text was updated successfully, but these errors were encountered: