Skip to content

Commit df1c166

Browse files
committed
Merged PR 6184: Set Get slicer state.
Set Get slicer state.
1 parent 8e29455 commit df1c166

File tree

6 files changed

+274
-16
lines changed

6 files changed

+274
-16
lines changed

dist/powerbi-client.d.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! powerbi-client v2.5.2 | (c) 2016 Microsoft Corporation MIT */
1+
/*! powerbi-client v2.6.0 | (c) 2016 Microsoft Corporation MIT */
22
declare module "util" {
33
/**
44
* Raises a custom event with event data on the specified HTML element.
@@ -529,6 +529,28 @@ declare module "visualDescriptor" {
529529
* @returns {(Promise<models.ExportDataType>)}
530530
*/
531531
exportData(exportDataType?: models.ExportDataType, rows?: number): Promise<models.ExportDataType>;
532+
/**
533+
* Set slicer state.
534+
* Works only for visuals of type slicer.
535+
* @param state: A new state which contains the slicer filters.
536+
* ```javascript
537+
* visual.setSlicerState()
538+
* .then(() => { ... });
539+
* ```
540+
*/
541+
setSlicerState(state: models.ISlicerState): Promise<void>;
542+
/**
543+
* Get slicer state.
544+
* Works only for visuals of type slicer.
545+
*
546+
* ```javascript
547+
* visual.getSlicerState()
548+
* .then(state => { ... });
549+
* ```
550+
*
551+
* @returns {(Promise<models.ISlicerState>)}
552+
*/
553+
getSlicerState(): Promise<models.ISlicerState>;
532554
}
533555
}
534556
declare module "page" {

dist/powerbi.js

Lines changed: 206 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)