All the menu demos show the menu covering the button that triggered it, is it possible to position it under the button? Like the menu-bar component does? I see there's some position support, but it seems like it's only left/right?
It seems to me like there should be a way to keep the button visible and in active state when menu is triggered.
Thanks
@Madd0g use md-position-mode and md-offset to do it
Example: http://codepen.io/anon/pen/PPeMYJ
<md-menu md-position-mode="target-right target" md-offset="0 42">
You can also set the 2nd argument for position-mode to bottom
, which is much cleaner as you don't need to specify the target height.
<md-menu md-position-mode="target-right bottom">
This issue is closed as part of our deprecation effort.
For details, see our post Spring Cleaning 2016.
Guys please, make better documentation. Current is really painful. I have to search different things in google instead of Angular Material documentation. Compared to Django or even Vue Material documentations your is just bad.
@ThomasBurleson should anyone follow your links - they end up going in circles back here..
@Corsseir that's really helpful, thank you. I fully agree! Please let me know if there are any other parts of the docs that are not complete.
I've opened PR #11195 to address this missing documentation.
Most helpful comment
You can also set the 2nd argument for position-mode to
bottom
, which is much cleaner as you don't need to specify the target height.<md-menu md-position-mode="target-right bottom">