material icon indicating copy to clipboard operation
material copied to clipboard

How to create a dropdown in the sidebar?

Open digitalcraftsman opened this issue 11 years ago • 5 comments

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?

digitalcraftsman avatar Apr 17 '15 14:04 digitalcraftsman

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!

marcysutton avatar Apr 17 '15 17:04 marcysutton

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.

WhiteAbeLincoln avatar Apr 17 '15 17:04 WhiteAbeLincoln

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.

digitalcraftsman avatar Apr 17 '15 18:04 digitalcraftsman

eqbalsajadi avatar Apr 04 '16 08:04 eqbalsajadi

Here is One That Might help.. https://github.com/mtushar091/angularjs_sideMenu

mosh-dev avatar Mar 02 '18 04:03 mosh-dev