-
Notifications
You must be signed in to change notification settings - Fork 76
Format colgroups #1374
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
Format colgroups #1374
Conversation
…columns by name, so column groups can now also be targeted and used. I turned the gathered attributes into a map, such that duplicate keys are removed. Only the latest ones stay, meaning you can overwrite previous attributes for a cell.
|
This now formats both firstName and lastName? |
I shall expand the kdocs a bit :) |
AndreiKingsley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! But yeah, need to describe behavior.
|
I'll also update the documentation site btw, I forgot about that, then I'll merge :) |
41f6cab to
37ecc69
Compare
Fixes #1356
Now you can actually do this:
df .format().with { background(white) } .format { age }.with { background(blue) and textColor(white) } .format { name }.with { background(green) } .format { name.firstName }.with { italic and underline } .format { name.colsOf<String>() }.where { it.startsWith("C") }.with { background(red) }Note, this does not solve #982 yet