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

Side by Side Diff: example/todomvc/web/editable_label.html

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 years, 4 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 unified diff | Download patch
« no previous file with comments | « example/todomvc/web/editable_label.dart ('k') | example/todomvc/web/model.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a 4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 </head> 10 </head>
11 <body> 11 <body>
12 <polymer-element name="editable-label" extends="div" attributes="value"> 12 <polymer-element name="editable-label" attributes="value">
13 <template> 13 <template>
14 <template bind if="{{notEditing}}"> 14 <template bind if="{{!editing}}">
15 <label class='edit-label' on-double-click="edit">{{value}}</label> 15 <label class='edit-label' on-double-click="edit">{{value}}</label>
16 </template> 16 </template>
17 <template bind if="{{editing}}"> 17 <template bind if="{{editing}}">
18 <form on-submit="update"> 18 <form on-submit="update">
19 <input id="edit" class="edit editing" 19 <input id="edit" class="edit editing"
20 on-blur="update" 20 on-blur="update" on-key-up="maybeCancel">
21 on-key-up="maybeCancel">
22 </form> 21 </form>
23 </template> 22 </template>
24 </template> 23 </template>
25 <script type="application/dart" src="editable_label.dart"></script> 24 <script type="application/dart" src="editable_label.dart"></script>
26 </polymer-element> 25 </polymer-element>
27 </body> 26 </body>
28 </html> 27 </html>
OLDNEW
« no previous file with comments | « example/todomvc/web/editable_label.dart ('k') | example/todomvc/web/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698