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
| onSelectionChange | function | Callback function that receives a Set of selected row IDs |
188
+
189
+
### 3.4 Sort Icons
190
+
191
+
You can customize the sort icons for ascending and descending states:
192
+
193
+
```tsx
194
+
<MultiLevelTable
195
+
data={data}
196
+
columns={columns}
197
+
sortable={true}
198
+
ascendingIcon={<CustomAscendingIcon />}// Custom icon for ascending sort
199
+
descendingIcon={<CustomDescendingIcon />}// Custom icon for descending sort
200
+
/>
201
+
```
202
+
203
+
| Prop | Type | Description |
204
+
|------|------|-------------|
205
+
| ascendingIcon | ReactNode | Custom icon component for ascending sort state |
206
+
| descendingIcon | ReactNode | Custom icon component for descending sort state |
207
+
208
+
### 3.5 Pagination
165
209
166
210
The table component provides comprehensive pagination functionality. You can either use the default pagination or create a custom one using the pagination props:
167
211
@@ -230,47 +274,7 @@ const CustomPagination = ({
230
274
/>
231
275
```
232
276
233
-
### 3.4 Selection
234
-
235
-
The table component supports row selection functionality. When enabled, it provides a selection state with the following properties:
236
-
237
-
```tsx
238
-
interfaceSelectionState {
239
-
selectedRows:Set<string|number>; // Set of selected row IDs
240
-
isAllSelected:boolean; // Whether all rows are selected
0 commit comments