-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Table): add headerRows
to allow to render multiple headers
#3574
feat(Table): add headerRows
to allow to render multiple headers
#3574
Conversation
💖 Thanks for opening this pull request! 💖 Here is a list of things that will help get it across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## master #3574 +/- ##
==========================================
+ Coverage 99.81% 99.81% +<.01%
==========================================
Files 174 174
Lines 2730 2734 +4
==========================================
+ Hits 2725 2729 +4
Misses 5 5
Continue to review full report at Codecov.
|
Can you check this CodeSandbox. Does it satisfiy all of your needs? 🐱 |
Indeed!! I was currently checking and about to commit tests and changes etc... but with this yes it's perfect! |
I added new docs for shorthand, they will be available on website with next release. But, you can enjoy them right now: https://github.com/Semantic-Org/Semantic-UI-React/blob/master/docs/src/pages/ShorthandProps.mdx Hope that it will help you 👍 |
Oops no I've commented too fast. It doesn't satisfy it. how can you have more than one row with rowSpan and so on? |
Can you please provide example markup in HTML for it? |
Do you mean something like this? |
Yes like this but with shorthands |
headerRows
to allow to render multiple headers
@Techunter please check changes, going to merge after your confirmation 👍 |
Okay for me. Maybe do the same for footer? |
@Techunter let's do 👍 We can add it in a separate PR |
…mantic-Org#3574) * provide a way to render multiple header like body rows * Add interface definition * fix bad copypaste, using tableData instead of headerData. add tests * rename to headerRows * cleanup render * fix UTs
Same behavior as renderBodyRow with tableData but for the Headers. Necessary when having more than one line in headers.
If headerRow is set then renderHeaderRow and headerData are ignored.
If accepted, maybe do the same for footer?