powerbi-visuals-api
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -538,2 +538,9 @@ declare namespace powerbi { | ||
childIdentityFields?: data.ISQExpr[]; | ||
/** | ||
* TRUE if the node is Collapsed | ||
* FALSE if it is Expanded | ||
* Undefined if it cannot be Expanded (e.g. subtotal) | ||
*/ | ||
isCollapsed?: boolean; | ||
} | ||
@@ -662,2 +669,5 @@ | ||
sources: DataViewMetadataColumn[]; | ||
/** If TRUE, this level can be expanded/collapsed */ | ||
canBeExpanded?: boolean; | ||
} | ||
@@ -1274,3 +1284,4 @@ | ||
interface ISelectionManager { | ||
showContextMenu(selectionId: ISelectionId, position: IPoint): IPromise<{}>; | ||
toggleExpandCollapse(selectionId: ISelectionId): IPromise<{}>; | ||
showContextMenu(selectionId: ISelectionId, position: IPoint, dataRoles?: string): IPromise<{}> | ||
select(selectionId: ISelectionId | ISelectionId[], multiSelect?: boolean): IPromise<ISelectionId[]>; | ||
@@ -1402,3 +1413,3 @@ hasSelection(): boolean; | ||
payload: string; | ||
resourceUrl:string; | ||
resourceUrl: string; | ||
} | ||
@@ -1474,3 +1485,3 @@ } | ||
*/ | ||
export interface IDownloadService { | ||
export interface IDownloadService { | ||
exportVisualsContent(content: string, fileName: string, fileType: string, fileDescription: string): IPromise<boolean>; | ||
@@ -1477,0 +1488,0 @@ } |
{ | ||
"name": "powerbi-visuals-api", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Power BI Custom Visuals API type definitions for typescript", | ||
@@ -5,0 +5,0 @@ "types": "index", |
@@ -30,2 +30,5 @@ { | ||
}, | ||
"expandCollapse": { | ||
"$ref": "#/definitions/expandCollapse" | ||
}, | ||
"suppressDefaultTitle": { | ||
@@ -881,2 +884,24 @@ "type": "boolean", | ||
}, | ||
"expandCollapse": { | ||
"type": "object", | ||
"description": "Defines the visual's expandCollapse capability", | ||
"properties": { | ||
"roles": { | ||
"type": "array", | ||
"description": "The expandCollapsed role names for this visual", | ||
"items": { | ||
"type": "string", | ||
"description": "The name of the role" | ||
} | ||
}, | ||
"addDataViewFlags": { | ||
"type": "object", | ||
"description": "The data view flags", | ||
"defaultValue": { | ||
"type": "boolean", | ||
"description": "indicates if the DataViewTreeNode will contain the isCollapsed flag by default" | ||
} | ||
} | ||
} | ||
}, | ||
"valueType": { | ||
@@ -883,0 +908,0 @@ "type": "object", |
124879
2911