Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: polymer_0.5.4/bower_components/paper-button/demo.html

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_0.5.4/bower_components/paper-button/demo.html
diff --git a/polymer_0.5.0/bower_components/paper-button/demo.html b/polymer_0.5.4/bower_components/paper-button/demo.html
similarity index 84%
copy from polymer_0.5.0/bower_components/paper-button/demo.html
copy to polymer_0.5.4/bower_components/paper-button/demo.html
index 2f30039196b9cf0f33295be0edddc9e7119571bd..733f976b9630a62a2ca6b20ae88f4184a4eeae71 100644
--- a/polymer_0.5.0/bower_components/paper-button/demo.html
+++ b/polymer_0.5.4/bower_components/paper-button/demo.html
@@ -62,8 +62,10 @@ license that can be found in the LICENSE file.
</style>
</head>
-<body unresolved onclick="clickAction(event);">
+<body unresolved>
+ <template is="auto-binding">
+ <div id="clicker" on-tap="{{clickAction}}">
<section>
<div>Flat buttons</div>
@@ -109,12 +111,28 @@ license that can be found in the LICENSE file.
<section>
+ <div>Toggle buttons</div>
+
+ <paper-button toggle>button</paper-button>
+
+ <paper-button toggle raised noink>noink</paper-button>
+
+ <paper-button toggle active class="colored">active</paper-button>
+
+ <paper-button toggle raised active class="colored">active</paper-button>
+
+ </section>
+
+ <section>
+
<div>Styling options</div>
<paper-button class="hover">hover</paper-button>
<paper-button class="blue-ripple">custom ripple</paper-button>
</section>
+</div>
+</template>
<script>
@@ -129,6 +147,10 @@ license that can be found in the LICENSE file.
}
}
+ addEventListener('template-bound', function(e) {
+ e.target.clickAction = clickAction;
+ });
+
</script>
</body>
« no previous file with comments | « polymer_0.5.4/bower_components/paper-button/bower.json ('k') | polymer_0.5.4/bower_components/paper-button/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698