Skip to content

Commit 5c524ea

Browse files
committed
chore: Grouped table selection POC
1 parent 26dc1ce commit 5c524ea

17 files changed

+2035
-60
lines changed

pages/app/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function isAppLayoutPage(pageId?: string) {
3636
'content-layout',
3737
'grid-navigation-custom',
3838
'expandable-rows-test',
39+
'grouped-table-test',
3940
'container/sticky-permutations',
4041
'copy-to-clipboard/scenario-split-panel',
4142
];

pages/table/expandable-rows.permutations.page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,12 @@ export default () => {
273273
renderLoaderLoading={({ item }) => `loading items for ${item?.name ?? 'root'}`}
274274
renderLoaderError={({ item }) => `error for ${item?.name ?? 'root'}`}
275275
submitEdit={permutation.editableCells ? () => {} : undefined}
276-
ariaLabels={{ ...ariaLabels, tableLabel: permutation.title }}
276+
ariaLabels={{
277+
...ariaLabels,
278+
tableLabel: permutation.title,
279+
expandButtonLabel: () => 'Expand',
280+
collapseButtonLabel: () => 'Collapse',
281+
}}
277282
/>
278283
)}
279284
/>

pages/table/expandable-rows/common.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ export const ariaLabels: TableProps<{ name: string }>['ariaLabels'] = {
4141
return `${item.name} is ${isItemSelected ? '' : 'not'} selected`;
4242
},
4343
tableLabel: 'Databases table',
44-
expandButtonLabel: () => 'expand row',
45-
collapseButtonLabel: () => 'collapse row',
4644
};
4745

4846
export function getHeaderCounterText<T>(items: ReadonlyArray<T>, selectedItems: ReadonlyArray<T> | undefined) {

0 commit comments

Comments
 (0)