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

Unified Diff: polymer_1.0.4/bower_components/iron-list/test/smoke/index.html

Issue 1264073002: Update polymer 1.0 install to pick up newly added elements. (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Update bower file to match actual versions. Created 5 years, 5 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_1.0.4/bower_components/iron-list/test/smoke/index.html
diff --git a/polymer_1.0.4/bower_components/iron-list/test/smoke/index.html b/polymer_1.0.4/bower_components/iron-list/test/smoke/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..545148eada21f22a7ba876aa2b25bcac9b691b38
--- /dev/null
+++ b/polymer_1.0.4/bower_components/iron-list/test/smoke/index.html
@@ -0,0 +1,202 @@
+<!--
+@license
+Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
+Code distributed by Google as part of the polymer project is also
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
+-->
+
+<!doctype html>
+<html>
+<head>
+
+ <title>iron-list demo</title>
+
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
+
+ <link rel="import" href="../../../polymer/polymer.html">
+ <link rel="import" href="../../../iron-flex-layout/iron-flex-layout.html">
+ <link rel="import" href="../../iron-list.html">
+ <link rel="import" href="dummy-data.html">
+
+ <dom-module id="x-app">
+ <style>
+
+ :host {
+ display: block;
+ font-family: sans-serif;
+ @apply(--layout-horizontal);
+ }
+
+ iron-list {
+ @apply(--layout-flex);
+ }
+
+ .item {
+ display: block;
+ padding: 8px;
+ border-bottom: 1px solid gray;
+ @apply(--layout-horizontal);
+ }
+
+ .item img {
+ height: 40px;
+ width: 40px;
+ }
+
+ .picture {
+ @apply(--layout-vertical);
+ }
+
+ #about {
+ color: lightgray;
+ font-style: italic;
+ font-size: 0.8em;
+ }
+
+ #last {
+ font-weight: bold;
+ font-size: 1.2em;
+ }
+
+ .padded {
+ @apply(--layout-flex);
+ }
+
+ .padded > * {
+ padding: 8px;
+ }
+
+ #index {
+ text-align: center;
+ padding-top: 8px;
+ }
+ #options {
+ background: white;
+ border-radius: 10px;
+ border: 1px solid gray;
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ z-index: 10;
+ padding: 5px;
+ }
+ #friends {
+ height: 20px;
+ }
+
+ </style>
+ <template>
+ <div id="options">
+ <input value="{{separator::input}}" style="width:20px;">
+ <label><input type="checkbox" checked="{{showing::change}}">Show friends</label>
+ </div>
+
+ <iron-list id="list1" items="{{data}}">
+ <template>
+ <div class="item">
+ <div class="picture">
+ <img src="{{pictureForItem(item)}}">
+ <div>{{item.index}}</div>
+ </div>
+ <div class="padded">
+ <div>
+ <input placeholder="name.last" value="{{item.name.last::input}}">
+ <span>{{separator}}</span>
+ <input placeholder="name.first" value="{{item.name.first::input}}">
+ </div>
+ <div>{{item.about}}</div>
+ <div id="friends">
+ <template is="dom-if" if="{{showing}}">
+ <span><strong>Friends:</strong></span>
+ <template is="dom-repeat" items="{{item.friends}}">
+ <span>{{item.name}}</span>
+ <span>{{separator}}</span>
+ </template>
+ </template>
+ </div>
+ </div>
+ </div>
+ </template>
+ </iron-list>
+
+ <iron-list id="list2" items="{{data}}">
+ <template>
+ <div class="item">
+ <div class="picture">
+ <img src="{{pictureForItem(item)}}">
+ <div>{{item.index}}</div>
+ </div>
+ <div class="padded">
+ <div>
+ <input placeholder="name.last" value="{{item.name.last::input}}">
+ <span>{{separator}}</span>
+ <input placeholder="name.first" value="{{item.name.first::input}}">
+ </div>
+ <div>{{item.about}}</div>
+ <div id="friends">
+ <template is="dom-if" if="{{showing}}">
+ <span><strong>Friends:</strong></span>
+ <template is="dom-repeat" items="{{item.friends}}">
+ <span>{{item.name}}</span>
+ <span>{{separator}}</span>
+ </template>
+ </template>
+ </div>
+ </div>
+ </div>
+ </template>
+ </iron-list>
+
+ </template>
+ </dom-module>
+
+ <script>
+
+ HTMLImports.whenReady(function() {
+
+ Polymer({
+
+ is: 'x-app',
+
+ properties: {
+ data: {
+ value: window.dummyData
+ },
+ separator: {
+ value: '|'
+ },
+ showing: {
+ value: false
+ }
+ },
+ pictureForItem: function(item) {
+ return item.picture + '/' + item.guid.slice(0,6);
+ },
+ iconForItem: function(item) {
+ return item.gender == 'female' ? 'star' : 'star-outline';
+ }
+ });
+
+ });
+
+ </script>
+
+ <style is="custom-style">
+ x-app {
+ @apply(--layout-fit);
+ }
+ </style>
+
+</head>
+<body unresolved>
+
+ <x-app class="flex"></x-app>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698