You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| summary | (data: readonly RecordType[]) => React.ReactNode | - | "summary" attribute in Ant Design's "Table" component is used to define the summary row of the table. The summary row is a special row that is usually used to display summary information of all rows in the table, such as total, average, etc. |
| rowScope | 'row' \| 'rowgroup' ||Set scope attribute for all cells in this column |
133
+
| rowScope | 'row' \| 'rowgroup' || Set scope attribute for all cells in this column |
133
134
| onCell | Function(record, index) || Set custom props per each cell. |
134
135
| onHeaderCell | Function(record) || Set custom props per each header cell. |
135
136
| render | Function(value, row, index) || The render function of cell, has three params: the text of this cell, the record of this row, the index of this row, it's return an object:{ children: value, props: { colSpan: 1, rowSpan:1 } } ==> 'children' is the text of this cell, props is some setting of this cell, eg: 'colspan' set td colspan, 'rowspan' set td rowspan |
136
137
138
+
## Summary Props
139
+
140
+
### Table.Summary
141
+
142
+
| Name | Type | Default | Description |
143
+
| --- | --- | --- | --- |
144
+
| key | String || key of this summary |
145
+
| fixed | boolean \| 'top' \| 'bottom' | - | "true" fixes the summary row at the bottom of the table. |
146
+
147
+
"top" fixes the summary row at the top of the table, while "bottom" fixes it at the bottom. "undefined" or "false" makes the summary row scrollable along with the table. |
148
+
149
+
### Table.Summary.Row
150
+
151
+
| Name | Type | Default | Description |
152
+
| --- | --- | --- | --- |
153
+
| key | String || key of this summary |
154
+
| className | String | - | className of this summary row |
155
+
| onClick | (e?: React.MouseEvent<HTMLElement>) => void | - | The onClick attribute in Ant Design's Table.Summary.Row component can be used to set a click event handler for the summary row. |
0 commit comments