fundamental-react icon indicating copy to clipboard operation
fundamental-react copied to clipboard

Consider refactoring Table to support prop spreading on table cells

Open greg-a-smith opened this issue 7 years ago • 2 comments

Prop spreading was added to Table for the header, body, header row and body rows. However, the current API does not easily support prop spreading to table cells (either <td> or <th>).

greg-a-smith avatar Jan 18 '19 17:01 greg-a-smith

Rework into separate subcomponents - see List: https://github.com/SAP/fundamental-react/tree/master/src/List

ie:

<Table>
   <Table.Header>...
  <Table.Body> ....
</Table>

jbadan avatar Sep 01 '20 21:09 jbadan

Related to https://github.com/SAP/fundamental-react/issues/969

jbadan avatar Sep 01 '20 21:09 jbadan