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

Unified Diff: web/elements/searchable_list.dart

Issue 688503004: Update searchable_list test to run in package bots (Closed) Base URL: git@github.com:dart-lang/searchable-list-sample.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « web/elements/demo_app.html ('k') | web/elements/searchable_list.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/elements/searchable_list.dart
diff --git a/web/elements/searchable_list.dart b/web/elements/searchable_list.dart
deleted file mode 100644
index f69bb20872469fbbf59ac2945f732651a0eb48a8..0000000000000000000000000000000000000000
--- a/web/elements/searchable_list.dart
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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.
-
-library searchable_list.searchable_list;
-
-import 'package:polymer/polymer.dart';
-
-@CustomTag('searchable-list')
-class SearchableList extends PolymerElement {
- @observable bool applyAuthorStyles = true;
- @observable String searchParam;
- @published List<String> data = [];
- final List<String> results = toObservable([]);
-
- SearchableList.created() : super.created();
-
- attached() {
- super.attached();
- results.addAll(data);
- onPropertyChange(this, #searchParam, search);
- }
-
- search() {
- results.clear();
- String lower = searchParam.toLowerCase();
- results.addAll(data.where((d) => d.toLowerCase().contains(lower)));
- }
-}
« no previous file with comments | « web/elements/demo_app.html ('k') | web/elements/searchable_list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698