Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Feature Request]: Support for rendering custom React nodes as expanded row content in Table component

Aperta
#3,602 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start by reading the Table component's expandableRows API and its documentation and tests; the issue does not name specific files. Identify how expanded content is currently represented and rendered. Done means the Table can display arbitrary React nodes as a row's expanded content, with tests covering that behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Description

Description:
Currently, the Table component's expandableRows API only supports rendering nested data as expanded rows, not arbitrary React nodes. In many use cases, it is necessary to display custom content (such as forms, charts, or complex layouts) when a row is expanded, rather than just additional table rows.

Use case:
We have a requirement to show rich, custom React content (not just nested table rows) when a user expands a row in the Table. For example, we may want to display a detailed panel, a form, or a summary card that spans the full width of the table. The current API does not support this, as the expanded content must be an array of items rendered as additional rows.

Benefit:
Supporting custom React nodes as expanded row content would make the Table component much more flexible and powerful, enabling a wider range of use cases without having to reimplement table features (sorting, selection, pagination, etc.) manually.

Request:
Please consider adding a prop or API to the Table component that allows developers to render arbitrary React nodes as the expanded content for a row, similar to how some other table libraries support expandable panels or detail rows.

Code of Conduct
Lingua principale
TypeScript
Stelle
2.7k
Fork
248
Merge medio
3g 14h
PR unite (30g)
83

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudscape-design/components

Tutte le issue di cloudscape-design/components

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.