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 |
| 7 * 'user-manager-pages' is the element that controls paging in the user manager |
| 8 * screen. |
| 9 * |
| 10 * Example: |
| 11 * |
| 12 * <user-manager-pages selected-page="sample-page-id"> |
| 13 * <sample-page id="sample-page-id"></sample-page> |
| 14 * ... other pages ... |
| 15 * </user-manager-pages> |
| 16 * |
| 17 * @element user-manager-pages |
| 18 */ |
| 19 Polymer({ |
| 20 is: 'user-manager-pages', |
| 21 |
| 22 properties: { |
| 23 /** |
| 24 * id of the currently selected page. |
| 25 * @type {boolean} |
| 26 */ |
| 27 selectedPage: { |
| 28 type: String, |
| 29 } |
| 30 }, |
| 31 |
| 32 /** @override */ |
| 33 attached: function() { |
| 34 this.addEventListener('change-page', function(e) { |
| 35 this.selectedPage = e.detail.page; |
| 36 }.bind(this)); |
| 37 } |
| 38 }); |
OLD | NEW |