We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e8d2f commit 6ced075Copy full SHA for 6ced075
1 file changed
website/routes/ContextMenu.tsx
@@ -36,7 +36,6 @@ function createRows(): Row[] {
36
for (let i = 1; i < 1000; i++) {
37
rows.push({
38
id: i,
39
- col2: '111111111111111111111111111111111111ssssssssssssssssssssssssssssssssssssssss1',
40
product: faker.commerce.productName(),
41
price: faker.commerce.price()
42
});
@@ -46,20 +45,11 @@ function createRows(): Row[] {
46
45
}
47
48
const columns: readonly Column<Row>[] = [
49
- {
50
- key: 'col1',
51
- name: 'col1',
52
- width: 100
53
- },
54
55
- key: 'col2',
56
- name: 'col2',
57
- minWidth: 100,
58
- width: 200,
59
- maxWidth: 400,
60
- resizable: true
61
- }
+ { key: 'id', name: 'ID' },
+ { key: 'product', name: 'Product' },
+ { key: 'price', name: 'Price' }
62
];
+
63
function rowKeyGetter(row: Row) {
64
return row.id;
65
0 commit comments