Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/search.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@ <h4 class="tsd-returns-title">Returns <a href="../interfaces/_node_modules_power
<li class=" tsd-kind-external-module">
<a href="../modules/_src_util_.html">"src/util"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_src_visual_.html">"src/visual"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_typings_globals_es6_promise_index_d_.html">"typings/globals/es6-<wbr>promise/index.d"</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@ <h4 class="tsd-returns-title">Returns <a href="../interfaces/_node_modules_power
<li class=" tsd-kind-external-module">
<a href="../modules/_src_util_.html">"src/util"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_src_visual_.html">"src/visual"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_typings_globals_es6_promise_index_d_.html">"typings/globals/es6-<wbr>promise/index.d"</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ <h4 class="tsd-returns-title">Returns <a href="../interfaces/_node_modules_power
<li class=" tsd-kind-external-module">
<a href="../modules/_src_util_.html">"src/util"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_src_visual_.html">"src/visual"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_typings_globals_es6_promise_index_d_.html">"typings/globals/es6-<wbr>promise/index.d"</a>
</li>
Expand Down
67 changes: 32 additions & 35 deletions classes/_src_dashboard_.dashboard.html

Large diffs are not rendered by default.

75 changes: 36 additions & 39 deletions classes/_src_embed_.embed.html

Large diffs are not rendered by default.

91 changes: 10 additions & 81 deletions classes/_src_page_.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ <h3>Properties</h3>
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_src_page_.page.html#getfilters" class="tsd-kind-icon">get<wbr>Filters</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_src_page_.page.html#getvisuals" class="tsd-kind-icon">get<wbr>Visuals</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_src_page_.page.html#removefilters" class="tsd-kind-icon">remove<wbr>Filters</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_src_page_.page.html#setactive" class="tsd-kind-icon">set<wbr>Active</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_src_page_.page.html#setfilters" class="tsd-kind-icon">set<wbr>Filters</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_src_page_.page.html#visual" class="tsd-kind-icon">visual</a></li>
</ul>
</section>
</div>
Expand All @@ -149,7 +147,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L44">src/page.ts:44</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L43">src/page.ts:43</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -182,7 +180,7 @@ <h3>display<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">display<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L44">src/page.ts:44</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L43">src/page.ts:43</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -203,7 +201,7 @@ <h3>name</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_src_page_.ipagenode.html">IPageNode</a>.<a href="../interfaces/_src_page_.ipagenode.html#name">name</a></p>
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L37">src/page.ts:37</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L36">src/page.ts:36</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -224,7 +222,7 @@ <h3>report</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_src_page_.ipagenode.html">IPageNode</a>.<a href="../interfaces/_src_page_.ipagenode.html#report">report</a></p>
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L31">src/page.ts:31</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L30">src/page.ts:30</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -252,46 +250,21 @@ <h3>get<wbr>Filters</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_src_ifilterable_.ifilterable.html">IFilterable</a>.<a href="../interfaces/_src_ifilterable_.ifilterable.html#getfilters">getFilters</a></p>
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L69">src/page.ts:69</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L68">src/page.ts:68</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Gets all page level filters within the report.</p>
</div>
<pre><code class="lang-javascript">page.getFilters()
.then(pages =&gt; { ... });
.then(<span class="hljs-function"><span class="hljs-params">pages</span> =&gt;</span> { ... });
</code></pre>
</div>
<h4 class="tsd-returns-title">Returns <a href="_typings_globals_es6_promise_index_d_.promise.html" class="tsd-signature-type">Promise</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">models.IFilter</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getvisuals" class="tsd-anchor"></a>
<h3>get<wbr>Visuals</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Visuals<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_typings_globals_es6_promise_index_d_.promise.html" class="tsd-signature-type">Promise</a><span class="tsd-signature-symbol">&lt;</span><a href="_src_visual_.visual.html" class="tsd-signature-type">Visual</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L87">src/page.ts:87</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Gets all the visuals on the page.</p>
</div>
<pre><code class="lang-javascript">page.getVisuals()
.then(visuals =&gt; { ... });
</code></pre>
</div>
<h4 class="tsd-returns-title">Returns <a href="_typings_globals_es6_promise_index_d_.promise.html" class="tsd-signature-type">Promise</a><span class="tsd-signature-symbol">&lt;</span><a href="_src_visual_.visual.html" class="tsd-signature-type">Visual</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="removefilters" class="tsd-anchor"></a>
<h3>remove<wbr>Filters</h3>
Expand All @@ -303,7 +276,7 @@ <h3>remove<wbr>Filters</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_src_ifilterable_.ifilterable.html">IFilterable</a>.<a href="../interfaces/_src_ifilterable_.ifilterable.html#removefilters">removeFilters</a></p>
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L108">src/page.ts:108</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L85">src/page.ts:85</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -327,7 +300,7 @@ <h3>set<wbr>Active</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L121">src/page.ts:121</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L98">src/page.ts:98</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -352,15 +325,15 @@ <h3>set<wbr>Filters</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_src_ifilterable_.ifilterable.html">IFilterable</a>.<a href="../interfaces/_src_ifilterable_.ifilterable.html#setfilters">setFilters</a></p>
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L144">src/page.ts:144</a></li>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cba63db/src/page.ts#L121">src/page.ts:121</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Sets all filters on the current page.</p>
</div>
<pre><code class="lang-javascript">page.setFilters(filters);
.catch(errors =&gt; { ... });
.catch(<span class="hljs-function"><span class="hljs-params">errors</span> =&gt;</span> { ... });
</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -373,41 +346,6 @@ <h4 class="tsd-returns-title">Returns <a href="_typings_globals_es6_promise_inde
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="visual" class="tsd-anchor"></a>
<h3>visual</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">visual<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_src_visual_.visual.html" class="tsd-signature-type">Visual</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Microsoft/PowerBI-JavaScript/blob/cd5b8d6/src/page.ts#L168">src/page.ts:168</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Creates a Visual object given a name for the visual.</p>
</div>
<p>Normally you would get Visual objects by calling <code>page.getVisuals()</code> but in the case
that the visual name is known and you want to perform an action on a visual such as setting a filter
without having to retrieve it first you can create it directly.</p>
<p>Note: Because you are creating the visual manually there is no guarantee that the visual actually exists in the report and the subsequence requests could fail.</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">const</span> visual = report.page(<span class="hljs-string">'ReportSection1'</span>).visual(<span class="hljs-string">'BarChart1'</span>);
visual.setFilters(filters);
</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_src_visual_.visual.html" class="tsd-signature-type">Visual</a></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
Expand Down Expand Up @@ -452,9 +390,6 @@ <h4 class="tsd-returns-title">Returns <a href="_src_visual_.visual.html" class="
<li class=" tsd-kind-external-module">
<a href="../modules/_src_util_.html">"src/util"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_src_visual_.html">"src/visual"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_typings_globals_es6_promise_index_d_.html">"typings/globals/es6-<wbr>promise/index.d"</a>
</li>
Expand Down Expand Up @@ -482,9 +417,6 @@ <h4 class="tsd-returns-title">Returns <a href="_src_visual_.visual.html" class="
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_src_page_.page.html#getfilters" class="tsd-kind-icon">get<wbr>Filters</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_src_page_.page.html#getvisuals" class="tsd-kind-icon">get<wbr>Visuals</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_src_page_.page.html#removefilters" class="tsd-kind-icon">remove<wbr>Filters</a>
</li>
Expand All @@ -494,9 +426,6 @@ <h4 class="tsd-returns-title">Returns <a href="_src_visual_.visual.html" class="
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_src_page_.page.html#setfilters" class="tsd-kind-icon">set<wbr>Filters</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_src_page_.page.html#visual" class="tsd-kind-icon">visual</a>
</li>
</ul>
</li>
</ul>
Expand Down
Loading