forked from microsoft/PowerBI-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathifilterable.ts
More file actions
30 lines (29 loc) · 732 Bytes
/
ifilterable.ts
File metadata and controls
30 lines (29 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import * as models from 'powerbi-models';
/**
* Decorates embed components that support filters
* Examples include reports and pages
*
* @export
* @interface IFilterable
*/
export interface IFilterable {
/**
* Gets the filters currently applied to the object.
*
* @returns {(Promise<models.IFilter[]>)}
*/
getFilters(): Promise<models.IFilter[]>;
/**
* Replaces all filters on the current object with the specified filter values.
*
* @param {(models.IFilter[])} filters
* @returns {Promise<void>}
*/
setFilters(filters: models.IFilter[]): Promise<void>;
/**
* Removes all filters from the current object.
*
* @returns {Promise<void>}
*/
removeFilters(): Promise<void>;
}