Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add capability to add an id prop to the table component #221

Closed
Ibabalola opened this issue Jul 13, 2021 · 0 comments · Fixed by #222
Closed

Add capability to add an id prop to the table component #221

Ibabalola opened this issue Jul 13, 2021 · 0 comments · Fixed by #222
Assignees

Comments

@Ibabalola
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently the <Table /> component does not give users of the library the possibility to add id's to the :

  • table
  • table header
  • table row(s)

Describe the solution you'd like

<table id="some-table-id">
   <thead>
      <tr>
         <th>Heading 1</th>
         <th>Heading 2</th>
         <th>Heading 3</th>
      </tr>
   </thead>
   <tbody>
      <tr id="some-row-id-1">
         <td>Row 1 Cell 1</td>
         <td>Row 1 Cell 2</td>
         <td>Row 1 Cell 3</td>
      </tr>
      <tr id="some-row-id-2">
         <td>Row 2 Cell 1</td>
         <td>Row 2 Cell 2</td>
         <td>Row 2 Cell 3</td>
      </tr>
      <tr id="some-row-id-3">
         <td>Row 3 Cell 1</td>
         <td>Row 3 Cell 2</td>
         <td>Row 3 Cell 3</td>
      </tr>
   </tbody>
</table>
@daniele-zurico daniele-zurico self-assigned this Jul 13, 2021
@daniele-zurico daniele-zurico linked a pull request Jul 13, 2021 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants