react-component / react-component/table

Feature proposal: Add a possiblity to extends the div wrapping the body

Open
#298 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

Right now, the components are overwrittable with:

      {
        table: 'table',
        header: {
          wrapper: 'thead',
          row: 'tr',
          cell: 'th',
        },
        body: {
          wrapper: 'tbody',
          row: 'tr',
          cell: 'td',
        },
      },

I would like to see if it would be possible to add another one, called div (or something else really, it's the best idea I could come up with), which would allow to customize here or here.
It would be useful in order to scrollTo a specified item in the table (putting a ref on the component), for exemple.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked locations in src/HeadTable.js and src/BodyTable.js, and inspect how existing table, header, and body wrapper customization is applied. Determine how the requested div-style wrapper should support attaching a ref for scrolling, then verify that the proposed customization works for the intended table body use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.