Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: chrome/browser/resources/md_user_manager/user_manager_pages.js

Issue 1630903002: material design user manager with create profile flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dan's comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
Dan Beam 2016/02/12 23:42:24 nit: listeners: { 'change-page': 'changePage_',
Moe 2016/02/20 00:21:00 I struggled a lot with this syntax originally. it
33 /** @override */
34 attached: function() {
35 this.addEventListener('change-page', function(e) {
36 this.selectedPage = e.detail.page;
37 }.bind(this));
38 }
39 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698