gd-bs 6.6.32 → 6.6.33
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.
- package/build/components/table/index.js +6 -6
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +4 -4
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/table/index.ts +6 -6
- package/src/components/table/types.d.ts +4 -4
|
@@ -86,7 +86,7 @@ var _Table = /** @class */ (function (_super) {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
// Renders a cell
|
|
89
|
-
_Table.prototype.renderCell = function (row, props, data) {
|
|
89
|
+
_Table.prototype.renderCell = function (row, props, data, rowIdx) {
|
|
90
90
|
var _this = this;
|
|
91
91
|
// Create the cell
|
|
92
92
|
var cell = document.createElement("td");
|
|
@@ -101,20 +101,20 @@ var _Table = /** @class */ (function (_super) {
|
|
|
101
101
|
// See if there is an event for this column
|
|
102
102
|
if (props.onRenderCell) {
|
|
103
103
|
// Call the event
|
|
104
|
-
props.onRenderCell(cell, props, data);
|
|
104
|
+
props.onRenderCell(cell, props, data, rowIdx);
|
|
105
105
|
}
|
|
106
106
|
// See if there is an event for this component
|
|
107
107
|
if (this.props.onRenderCell) {
|
|
108
108
|
// Call the event
|
|
109
|
-
this.props.onRenderCell(cell, props, data);
|
|
109
|
+
this.props.onRenderCell(cell, props, data, rowIdx);
|
|
110
110
|
}
|
|
111
111
|
// See if there is a click event
|
|
112
112
|
if (props.onClickCell || this.props.onClickCell) {
|
|
113
113
|
// Add the click event
|
|
114
114
|
cell.addEventListener("click", function (ev) {
|
|
115
115
|
// Call the event
|
|
116
|
-
props.onClickCell ? props.onClickCell(cell, props, data) : null;
|
|
117
|
-
_this.props.onClickCell ? _this.props.onClickCell(cell, props, data) : null;
|
|
116
|
+
props.onClickCell ? props.onClickCell(cell, props, data, rowIdx) : null;
|
|
117
|
+
_this.props.onClickCell ? _this.props.onClickCell(cell, props, data, rowIdx) : null;
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
};
|
|
@@ -123,7 +123,7 @@ var _Table = /** @class */ (function (_super) {
|
|
|
123
123
|
// See if columns
|
|
124
124
|
for (var i = 0; i < this.props.columns.length; i++) {
|
|
125
125
|
// Create the cell
|
|
126
|
-
this.renderCell(row, this.props.columns[i], data);
|
|
126
|
+
this.renderCell(row, this.props.columns[i], data, rowIdx);
|
|
127
127
|
}
|
|
128
128
|
// See if there is an event
|
|
129
129
|
if (this.props.onRenderRow) {
|