gd-bs 6.6.83 → 6.6.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,16 +45,17 @@ var _Table = /** @class */ (function (_super) {
|
|
|
45
45
|
head.appendChild(row);
|
|
46
46
|
// Parse the columns
|
|
47
47
|
for (var i = 0; i < this.props.columns.length; i++) {
|
|
48
|
+
var colProp = this.props.columns[i];
|
|
48
49
|
// Append the column
|
|
49
50
|
var column = document.createElement("th");
|
|
50
51
|
row.appendChild(column);
|
|
51
52
|
// See if the footer exists
|
|
52
|
-
if (
|
|
53
|
+
if (colProp.footer || colProp.onRenderFooter) {
|
|
53
54
|
// Set the flag
|
|
54
55
|
hasFooter = true;
|
|
55
56
|
}
|
|
56
57
|
// Render the column
|
|
57
|
-
this.renderColumn(column,
|
|
58
|
+
this.renderColumn(column, colProp);
|
|
58
59
|
}
|
|
59
60
|
// See if there is an event
|
|
60
61
|
if (this.props.onRenderHeaderRow) {
|
|
@@ -78,11 +79,6 @@ var _Table = /** @class */ (function (_super) {
|
|
|
78
79
|
// Append the column
|
|
79
80
|
var column = document.createElement("td");
|
|
80
81
|
row.appendChild(column);
|
|
81
|
-
// See if the footer exists
|
|
82
|
-
if (this.props.columns[i].footer) {
|
|
83
|
-
// Set the flag
|
|
84
|
-
hasFooter = true;
|
|
85
|
-
}
|
|
86
82
|
// Render the column
|
|
87
83
|
this.renderColumnFooter(column, this.props.columns[i]);
|
|
88
84
|
}
|
|
@@ -149,6 +145,7 @@ var _Table = /** @class */ (function (_super) {
|
|
|
149
145
|
// Renders a column footer
|
|
150
146
|
_Table.prototype.renderColumnFooter = function (column, props) {
|
|
151
147
|
var _this = this;
|
|
148
|
+
column.innerHTML = props.footer || "";
|
|
152
149
|
// See if there is an event for this column
|
|
153
150
|
if (props.onRenderFooter) {
|
|
154
151
|
// Call the event
|