| Index: runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart
|
| diff --git a/runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart b/runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..681e684ef3df8918b9b0dcf41ca5b87ccfd59329
|
| --- /dev/null
|
| +++ b/runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart
|
| @@ -0,0 +1,21 @@
|
| +// Copyright (c) 2014, 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.
|
| +
|
| +library sliding_checkbox_element;
|
| +
|
| +import 'dart:html';
|
| +import 'package:polymer/polymer.dart';
|
| +
|
| +@CustomTag('sliding-checkbox')
|
| +class SlidingCheckboxElement extends PolymerElement {
|
| + SlidingCheckboxElement.created() : super.created();
|
| + @published bool checked;
|
| + @published String onText;
|
| + @published String offText;
|
| +
|
| + void change(Event e, var details, Node target) {
|
| + CheckboxInputElement input = shadowRoot.querySelector('#slide-switch');
|
| + checked = input.checked;
|
| + }
|
| +}
|
|
|