Skip to content

Commit f4f3ab3

Browse files
top left corner styling
1 parent 49a45d5 commit f4f3ab3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/js/DataController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ DataController.prototype.resetRawData = function () {
281281
|| (data["info"] || {})["cubeName"]
282282
|| ""
283283
};
284+
applyHeaderStyle(rawData[y][x], false);
284285
} else {
285286
rawData[y][x] = rd1[y-xh][x];
286287
}
@@ -350,7 +351,8 @@ DataController.prototype.resetRawData = function () {
350351
isCaption: true,
351352
source: {},
352353
value: navigator.language === "ru" ? "Всего" : "Total"
353-
}
354+
};
355+
applyHeaderStyle(summary[i], false);
354356
} else {
355357
summary[i] = {
356358
value: getTotalFunction(parseInt(i) - data.info.leftHeaderColumnsNumber)

source/js/PivotView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ PivotView.prototype.renderRawData = function (data) {
476476

477477
// fill header
478478
header.textContent = info.leftHeaderColumnsNumber ? rawData[0][0].value : "";
479+
if (rawData[0][0].style) header.setAttribute("style", rawData[0][0].style);
479480
if (this.tablesStack.length > 1 && !this.controller.CONFIG["hideButtons"]) {
480481
header.className += "back ";
481482
header.addEventListener(CLICK_EVENT, function (e) {

0 commit comments

Comments
 (0)