Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature Request]: Add Total Row functionality to Table Component

Đang mở
#3,803 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@ernst-dev đang làm issue này rồi.

Từ ngày 22/7/2026.

  • #4763 của @ernst-dev — đang mở

Đá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ả

enhancement
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
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudscape-design/components

Tất cả issue của cloudscape-design/components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.