| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-subpage' shows a subpage beneath a subheader. The header contains | 7 * 'settings-subpage' shows a subpage beneath a subheader. The header contains |
| 8 * the subpage title, a search field and a back icon. | 8 * the subpage title, a search field and a back icon. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 Polymer({ | 11 Polymer({ |
| 12 is: 'settings-subpage', | 12 is: 'settings-subpage', |
| 13 | 13 |
| 14 behaviors: [ | 14 behaviors: [ |
| 15 // TODO(michaelpg): phase out NeonAnimatableBehavior. | 15 // TODO(michaelpg): phase out NeonAnimatableBehavior. |
| 16 Polymer.NeonAnimatableBehavior, | 16 Polymer.NeonAnimatableBehavior, |
| 17 Polymer.IronResizableBehavior, | 17 Polymer.IronResizableBehavior, |
| 18 ], | 18 ], |
| 19 | 19 |
| 20 properties: { | 20 properties: { |
| 21 pageTitle: String, | 21 pageTitle: String, |
| 22 | 22 |
| 23 learnMoreUrl: String, |
| 24 |
| 23 /** Setting a |searchLabel| will enable search. */ | 25 /** Setting a |searchLabel| will enable search. */ |
| 24 searchLabel: String, | 26 searchLabel: String, |
| 25 | 27 |
| 26 searchTerm: { | 28 searchTerm: { |
| 27 type: String, | 29 type: String, |
| 28 notify: true, | 30 notify: true, |
| 29 value: '', | 31 value: '', |
| 30 }, | 32 }, |
| 31 | 33 |
| 32 /** If true shows an active spinner at the end of the subpage header. */ | 34 /** If true shows an active spinner at the end of the subpage header. */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 50 /** @private */ | 52 /** @private */ |
| 51 onTapBack_: function() { | 53 onTapBack_: function() { |
| 52 settings.navigateToPreviousRoute(); | 54 settings.navigateToPreviousRoute(); |
| 53 }, | 55 }, |
| 54 | 56 |
| 55 /** @private */ | 57 /** @private */ |
| 56 onSearchChanged_: function(e) { | 58 onSearchChanged_: function(e) { |
| 57 this.searchTerm = e.detail; | 59 this.searchTerm = e.detail; |
| 58 }, | 60 }, |
| 59 }); | 61 }); |
| OLD | NEW |