Last active
December 16, 2015 15:56
-
-
Save lucyllewy/18e1a3889a6ba014469e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../bower_components/polymer/polymer.html"> | |
<link rel="import" href="../bower_components/iron-menu-behavior/iron-menubar-behavior.html"> | |
<dom-module id="broadway-menubar"> | |
<template> | |
<div class="selectable-content"> | |
<content></content> | |
</div> | |
</template> | |
<script> | |
(function() { | |
Polymer({ | |
is: 'broadway-menubar', | |
behaviors: [ | |
Polymer.IronMenubarBehavior | |
] | |
}); | |
})(); | |
</script> | |
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<broadway-menubar attr-for-selected="data-route" selected="{{route}}"> | |
<a data-route="choose" href="/" on-click="onDataRouteClick"><span>Choose your place</span></a> | |
<a data-route="soundtrack" href="/soundtrack" on-click="onDataRouteClick"><span>Choose your soundtrack</span></a> | |
<a data-route="relax" href="/relax" on-click="onDataRouteClick"><span>Relax</span></a> | |
<a data-route="exercise" href="/exercise" on-click="onDataRouteClick"><span>Exercise</span></a> | |
<a data-route="massage" href="/massage" on-click="onDataRouteClick"><span>Massage</span></a> | |
</broadway-menubar> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment