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