-
Notifications
You must be signed in to change notification settings - Fork 264
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
Feature request: Style table rows / cells individually #246
Comments
Hey, this is a good idea and natural extension of the table. I think we should probably introduce a row that can take any struct that implements the |
Hey all,
and this is the best i could come up with, if you'd be interested to take a look and let me know what you think of this approach (it's a local, older copy of tables code i'm still using, but i can easily PR this here)
which holds interfaces for Cell/Row/Selected functions.
https://github.com/CLIP-HPC/SlurmCommander/blob/alt_table_2/internal/table/table.go#L28-L32
This way, separate styles for a single Cell/Column of cells/Row/Selected rows can be programmatically done, like i'm doing here (first working prototype): |
@pja237 Could you create a PR so that we can work together on refining your idea? |
@jlec Was hoping someone would be willing to help me with this 👍 |
I've implemented the first part for stylizing cells: #397 |
Code looks good to me. I've personally been waiting for this for a personal project of mine so I'm excited to have this merged. |
Hey this was introduced in #504 and will be in the next release :) |
I would like to be able to provide styling for rows and / or cells individually. Currently the only way to do this is through the
Selected
property, but that approach is limited in the sense that you can only have two styles (one for the base, and one for the selected row).The text was updated successfully, but these errors were encountered: