Material: docs(menu): missing new position modes

Created on 14 Oct 2015  路  6Comments  路  Source: angular/material

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

required Pull Request fixed docs

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">

All 6 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bobber205 picture bobber205  路  3Comments

kasajian picture kasajian  路  3Comments

chriseyhorn picture chriseyhorn  路  3Comments

robertmesserle picture robertmesserle  路  3Comments

ddimitrop picture ddimitrop  路  3Comments