Skip to main content
Dublin Library

The Publishing Project

Case Study: Building Polymer Applications, Part 2

 

## project-menu `project-menu` is a presentational element that only contains icons, links and linkable icon elements. It’s a good example of how we can compose custom elements with regular HTML content. As will all out elements we import `elements.html` to make sure we have everything we need to get started. We then define our dom-module to be project menu by assigning its ID. ```markup ``` We then instantiate the element. ```markup ``` This is about as simple as a menu can get. We don't use animations and we don't have sub menus to animate. Yet it gives a good initial idea of how to build a menu and provides a good starting points for enhancements.

Edit on Github