Demo Item 1 Item 2 Item 3 <div class="menu open"> <a href="#!" class="item ripple-e">Item 1</a> <a href="#!" class="item ripple-e">Item 2</a> <a href="#!" class="item ripple-e">Item 3</a> </div> With Trigger Open Menu Item 1 Item 2 Item 3 <button data-toggle-menu="as" class="btn">Open Menu</button> <div class="menu list" data-menu-id="as"> <a href="#!" class="item ripple-e">Item 1</a> <a href="#!" class="item ripple-e">Item 2</a> <a href="#!" class="item ripple-e">Item 3</a> </div> JavaScript API let menu = Material.menu; let selector = document.querySelector('.menu'); // open menu menu.open(selector); // close menu menu.close(selector); // toggle menu menu.toggle(selector); Edit this page Your Ad here Table of Contents Demo With Trigger JavaScript API