Skip to content

Commit 1c1ef99

Browse files
committed
Merge pull request #8 from philipwalton/document-view-selector-attrs
Document the accounts, properties, and views attributes for the view selector element.
2 parents 8df79e5 + 5315574 commit 1c1ef99

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

google-analytics-view-selector.html

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<polymer-element
2828
name="google-analytics-view-selector"
2929
extends="google-analytics-base"
30-
attributes="ids">
30+
attributes="accounts properties views ids">
3131

3232
<template>
3333
<style>
@@ -91,6 +91,38 @@
9191
* @type string
9292
*/
9393

94+
/**
95+
* The `accounts` attribute contains an array of accounts this user has
96+
* access to. Each account contains the properties within that account
97+
* and each property contains the views within that property.
98+
* Once this value is initially set, it does not change regardless of
99+
* what account the user has selected.
100+
*
101+
* See the <a href="https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtAccountSummariesGuide">Management API's accountSummaries methods</a> for more details.
102+
*
103+
* @attribute accounts
104+
* @type Array
105+
*/
106+
107+
/**
108+
* The `properties` attribute contains the properties for the currently
109+
* selected account. Each property contains the views within that
110+
* property. This value changes when the user selects a different
111+
* account.
112+
*
113+
* @attribute properties
114+
* @type Array
115+
*/
116+
117+
/**
118+
* The `views` attribute contains the views for the currently
119+
* selected property. This value changes when the user selects a
120+
* different property.
121+
*
122+
* @attribute views
123+
* @type Array
124+
*/
125+
94126
accountIndex: 0,
95127

96128
propertyIndex: 0,

0 commit comments

Comments
 (0)