| Index: samples/third_party/todomvc/web/editable_label.html
|
| diff --git a/samples/third_party/todomvc/web/editable_label.html b/samples/third_party/todomvc/web/editable_label.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f42b271cc0389e22e2d6220b69f64a5e8fa6aa6d
|
| --- /dev/null
|
| +++ b/samples/third_party/todomvc/web/editable_label.html
|
| @@ -0,0 +1,19 @@
|
| +<!--
|
| +Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +for details. All rights reserved. Use of this source code is governed by a
|
| +BSD-style license that can be found in the LICENSE file.
|
| +-->
|
| +<polymer-element name="editable-label">
|
| + <template>
|
| + <template if="{{!editing}}">
|
| + <label class='edit-label' on-doubleclick="{{edit}}">{{value}}</label>
|
| + </template>
|
| + <template if="{{editing}}">
|
| + <form on-submit="{{update}}">
|
| + <input id="edit" class="edit editing"
|
| + on-blur="{{update}}" on-keyup="{{maybeCancel}}">
|
| + </form>
|
| + </template>
|
| + </template>
|
| + <script type="application/dart" src="editable_label.dart"></script>
|
| +</polymer-element>
|
|
|