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

Unified Diff: samples/third_party/todomvc/web/elements/td_item.html

Issue 60353013: Update TodoMVC based on https://github.com/polymer/todomvc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix pubspecs Created 7 years, 1 month 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: samples/third_party/todomvc/web/elements/td_item.html
diff --git a/samples/third_party/todomvc/web/elements/td_item.html b/samples/third_party/todomvc/web/elements/td_item.html
new file mode 100644
index 0000000000000000000000000000000000000000..fdc68478c32bf6279dd47266f56b110fdab4a5f6
--- /dev/null
+++ b/samples/third_party/todomvc/web/elements/td_item.html
@@ -0,0 +1,18 @@
+<link rel="import" href="td_input.html">
+<polymer-element name="td-item" extends="li" attributes="item editing"
+ on-blur="{{commitAction}}">
+ <template>
+ <link rel="stylesheet" href="td_item.css">
+ <div class="view {{ {'completed': item.completed, 'editing': editing} }}"
+ hidden?="{{editing}}" on-dblclick="{{editAction}}">
+ <input type="checkbox" class="toggle" checked="{{item.completed}}"
+ on-click="{{itemChangeAction}}">
+ <label>{{item.title}}</label>
+ <button class="destroy" on-click="{{destroyAction}}"></button>
+ </div>
+ <input is="td-input" id="edit" class="edit" value="{{item.title}}"
+ hidden?="{{!editing}}" on-td-input-commit="{{commitAction}}"
+ on-td-input-cancel="{{cancelAction}}">
+ </template>
+ <script type="application/dart" src="td_item.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698