Skip to content

Commit

Permalink
API 5.1.0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gennady Laventman committed Aug 22, 2022
1 parent b7b6c7a commit 38e02d8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,11 @@ declare module powerbi.extensibility.visual {
/** Indicates whether the licenses info could be retrieved. */
isLicenseInfoAvailable: boolean;
}

export const enum RowSubtotalType {
Top = "Top",
Bottom = "Bottom",
}
}

export default powerbi;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-api",
"version": "4.7.0",
"version": "5.1.0",
"description": "Power BI Custom Visuals API type definitions for typescript",
"types": "index",
"main": "index.js",
Expand Down
24 changes: 24 additions & 0 deletions schema.capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,30 @@
"type": "boolean"
}
}
},
"rowSubtotalsType": {
"type": "object",
"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",
"properties": {
"propertyIdentifier": {
"type": "object",
"properties": {
"objectName": {
"type": "string"
},
"propertyName": {
"type": "string"
}
}
},
"defaultValue": {
"type": "string",
"enum": [
"Top",
"Botton"
]
}
}
}
},
"requires": [
Expand Down

0 comments on commit 38e02d8

Please sign in to comment.