How to create a dropdown in the sidebar?
I want to create similar dropdowns like those in the docs of Angular Material (see Services or Directives), but I can't find a proper example?
Hi, this is a custom implementation for the docs only...what you're looking for is the expand/collapse list control, forthcoming in #985. Going to close this as a duplicate, please refer to that issue. Thanks!
In the meantime...
Just check the source for the docs on github. The relevant html code for the dropdown toggles and the link buttons are contained in app/partials/menu-link.tmpl.html and app/partials/menu-toggle.tmpl.html. The javascript logic for these components is contained in the menuToggle and menuLink directives in app/js/app.js. Also check the menu factory, which should be just above those directives, for the logic for defining the hrefs for links and toggles.
Thanks for the quick response.
@WhiteAbeLincoln I could extract the necessary code from your given references, but I my own implementation would seem a bit hacky. Meanwhile I'll wait until the component will be officially released.
Here is One That Might help.. https://github.com/mtushar091/angularjs_sideMenu