OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview 'user-manager-pages' is the element that controls paging in the |
| 7 * user manager screen. |
| 8 * |
| 9 * @element user-manager-pages |
| 10 */ |
| 11 Polymer({ |
| 12 is: 'user-manager-pages', |
| 13 |
| 14 properties: { |
| 15 /** |
| 16 * ID of the currently selected page. |
| 17 * @private {boolean} |
| 18 */ |
| 19 selectedPage_: { |
| 20 type: String, |
| 21 value: 'user-pods-page' |
| 22 } |
| 23 }, |
| 24 |
| 25 /** @override */ |
| 26 attached: function() { |
| 27 this.addEventListener('change-page', function(e) { |
| 28 this.selectedPage_ = e.detail.page; |
| 29 }.bind(this)); |
| 30 } |
| 31 }); |
OLD | NEW |