gd-bs 6.6.31 → 6.6.32
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 +3 -3
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -1
- 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 +3 -3
- package/src/components/table/types.d.ts +1 -1
package/package.json
CHANGED
|
@@ -115,7 +115,7 @@ class _Table extends Base<ITableProps> implements ITable {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// Renders a row
|
|
118
|
-
private renderRow(row: HTMLTableRowElement, data) {
|
|
118
|
+
private renderRow(row: HTMLTableRowElement, data, rowIdx: number) {
|
|
119
119
|
// See if columns
|
|
120
120
|
for (let i = 0; i < this.props.columns.length; i++) {
|
|
121
121
|
// Create the cell
|
|
@@ -125,7 +125,7 @@ class _Table extends Base<ITableProps> implements ITable {
|
|
|
125
125
|
// See if there is an event
|
|
126
126
|
if (this.props.onRenderRow) {
|
|
127
127
|
// Call the event
|
|
128
|
-
this.props.onRenderRow(row, data);
|
|
128
|
+
this.props.onRenderRow(row, data, rowIdx);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -144,7 +144,7 @@ class _Table extends Base<ITableProps> implements ITable {
|
|
|
144
144
|
tbody.appendChild(row);
|
|
145
145
|
|
|
146
146
|
// Render the row
|
|
147
|
-
this.renderRow(row, rows[i]);
|
|
147
|
+
this.renderRow(row, rows[i], i);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -90,7 +90,7 @@ export interface ITableProps extends IBaseProps<ITable> {
|
|
|
90
90
|
onRenderCell?: (el?: HTMLTableDataCellElement, column?: ITableColumn, data?: any) => void;
|
|
91
91
|
onRenderHeaderCell?: (el?: HTMLTableDataCellElement, column?: ITableColumn) => void;
|
|
92
92
|
onRenderHeaderRow?: (el?: HTMLTableRowElement) => void;
|
|
93
|
-
onRenderRow?: (el?: HTMLTableRowElement, data?: any) => void;
|
|
93
|
+
onRenderRow?: (el?: HTMLTableRowElement, data?: any, rowIdx?: number) => void;
|
|
94
94
|
rows?: Array<any>;
|
|
95
95
|
}
|
|
96
96
|
|