Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / resources / settings / settings_menu / settings_menu.js
blobec2108a9e00f50041aba437abd64d9ec9a2a35cb
1 // Copyright 2015 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.
5 /**
6 * @fileoverview
7 * 'cr-settings-menu' shows a menu with the given pages.
9 * Example:
11 * <cr-settings-menu pages="{{pages}}" selectedId="{{selectedId}}">
12 * </cr-settings-menu>
14 * @group Chrome Settings Elements
15 * @element cr-settings-menu
17 Polymer('cr-settings-menu', {
18 publish: {
19 /**
20 * Pages to show menu items for.
22 * @attribute pages
23 * @type Array<!Object>
24 * @default null
26 pages: null,
28 /**
29 * ID of the currently selected page.
31 * @attribute selectedId
32 * @type string
33 * default ''
35 selectedId: '',
38 /** @override */
39 created: function() {
40 this.pages = [];
42 });