Index: ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html |
diff --git a/ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html b/ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..979b2ceb9c0789ba9d6e27d236702dc96dedbe60 |
--- /dev/null |
+++ b/ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html |
@@ -0,0 +1,26 @@ |
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
+ |
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input-container.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html"> |
+<link rel="import" href="chrome://resources/html/assert.html"> |
+ |
+<dom-module id="cr-search-field"> |
+ <template> |
+ <paper-icon-button icon="search" id="search-button" |
+ i18n-values="title:search" |
Dan Beam
2015/09/14 23:16:06
nit: disabled$="[[showingSearch_]]" if you want
Devlin
2015/09/15 17:24:06
Done.
|
+ on-click="toggleShowingSearch_"></paper-icon-button> |
+ <paper-input-container id="search-term" on-search="onSearchTermSearch_" |
+ on-keydown="onSearchTermKeydown_" hidden$="[[!showingSearch_]]" |
+ no-label-float> |
+ <input is="iron-input" id="search-input" type="search" |
+ i18n-values="placeholder:search" incremental> |
+ <paper-icon-button icon="cancel" id="clear-search" |
+ on-click="toggleShowingSearch_" |
+ hidden$="[[!showingSearch_]]"></paper-icon-button> |
+ </paper-input-container> |
+ </template> |
+ <link rel="import" type="css" href="cr_search_field.css"> |
+ <script src="cr_search_field.js"></script> |
+</dom-module> |