[Feature Request]: Add Total Row functionality to Table Component
Maintainer thường phản hồi trong vòng 2 ngày
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start by reviewing linked pull request #4763, which is already open for this issue. The request describes adding configurable aggregation cells, column alignment, and an optional sticky footer to the Table component. Check the pull request and its tests to understand what is already covered and what remains; completion should meet the requested footer behavior without duplicating work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
In our ERP application, we frequently need to display aggregated data (e.g., sum, average, count) at the bottom of a table. Currently, the Table component in Cloudscape does not provide a built-in way to render a total row.
Developers need to manually append a custom row outside of the component, which makes styling and alignment inconsistent with the rest of the table.
It would be helpful if the Table component supported a Total Row (Footer Row) feature, similar to how many enterprise data grid libraries provide summary rows.
- Option to enable a footer row.
- Ability to define aggregations (sum, average, min, max, custom).
- Consistent styling with table cells, aligned with columns.
- Sticky footer option, similar to sticky header.
Example
<Table
header={<Header>Purchase Orders</Header>}
columnDefinitions={[
{ id: 'item', header: 'Item', cell: item => item.name },
{ id: 'qty', header: 'Quantity', cell: item => item.qty },
{ id: 'price', header: 'Price', cell: item => item.price },
]}
items={[
{ name: 'Fabric A', qty: 10, price: 200 },
{ name: 'Fabric B', qty: 5, price: 100 },
]}
totalRow={{
cells: {
item: 'Total',
qty: (items) => items.reduce((sum, i) => sum + i.qty, 0),
price: (items) => items.reduce((sum, i) => sum + i.price, 0),
},
sticky: true
}}
/>
Code of Conduct
- I agree to follow this project's Code of Conduct
- I checked the current issues for duplicate requests
- Ngôn ngữ chính
- TypeScript
- Star
- 2.7k
- Fork
- 248
- Merge trung bình
- 3 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 83
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudscape-design/components
-
[Bug]: Circular app layout navigation and help icons are shifted upward in the official demoĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cloudscape-design/components#5184 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudscape-design/components#5152 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
cloudscape-design/components#5149 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
cloudscape-design/components#5117 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
cloudscape-design/components#5106 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của cloudscape-design/components
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
body-parser 2.3.0 in the published ai-dial-chat-bff image is vulnerable (CVE-2026-111181, HIGH)Có thể đã có người làm @illya-havsiyevych đã nhận hôm nay. Đang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
epam/ai-dial-chat#9566 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
はさみアイコンを修正するĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingĐang mởarea: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày