Skip to content

Commit 4e4fb1d

Browse files
author
Gennady Laventman
committed
API 5.1.0
Creating API 5.1.0 Adding rowSubtotalsType to schema.capabilities.json for subtotals position API Adding RowSubtotalType enum index.d.ts for subtotals position API Signed-off-by: Gennady Laventman <glaventman@microsoft.com>
1 parent b7b6c7a commit 4e4fb1d

4 files changed

Lines changed: 32 additions & 3 deletions

File tree

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,11 @@ declare module powerbi.extensibility.visual {
17421742
/** Indicates whether the licenses info could be retrieved. */
17431743
isLicenseInfoAvailable: boolean;
17441744
}
1745+
1746+
export const enum RowSubtotalType {
1747+
Top = "Top",
1748+
Bottom = "Bottom",
1749+
}
17451750
}
17461751

17471752
export default powerbi;

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-visuals-api",
3-
"version": "4.7.0",
3+
"version": "5.1.0",
44
"description": "Power BI Custom Visuals API type definitions for typescript",
55
"types": "index",
66
"main": "index.js",

schema.capabilities.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,30 @@
14151415
"type": "boolean"
14161416
}
14171417
}
1418+
},
1419+
"rowSubtotalsType": {
1420+
"type": "object",
1421+
"description": "Indicates location of row subtotals locations (Top, Bottom). Top means subtotals located on top of DS and calculated even before all DS rows fetched, Bottom means subtotals located at the end of DS and shown only after all rows are fetched",
1422+
"properties": {
1423+
"propertyIdentifier": {
1424+
"type": "object",
1425+
"properties": {
1426+
"objectName": {
1427+
"type": "string"
1428+
},
1429+
"propertyName": {
1430+
"type": "string"
1431+
}
1432+
}
1433+
},
1434+
"defaultValue": {
1435+
"type": "string",
1436+
"enum": [
1437+
"Top",
1438+
"Botton"
1439+
]
1440+
}
1441+
}
14181442
}
14191443
},
14201444
"requires": [

0 commit comments

Comments
 (0)