Skip to content

table: RowPainterWithAttributes; addresses #345 #346

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

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

jedib0t
Copy link
Owner

@jedib0t jedib0t commented Dec 9, 2024

Proposed Changes

  • Allow SetRowPainter to take functions with 2 different signatures
    • RowPainter with the original func(table.Row) text.Colors
    • RowPainterWithAttributes with func(table.Row, table.RowAttributes) text.Colors
      • RowAttributes carry additional properties of the row back to the painter

Copy link

sonarqubecloud bot commented Dec 9, 2024

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12239882869

Details

  • 65 of 65 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 12101145541: 0.0%
Covered Lines: 3801
Relevant Lines: 3801

💛 - Coveralls

@jedib0t jedib0t merged commit 612678d into main Dec 9, 2024
6 checks passed
@jedib0t jedib0t deleted the table-row-painter branch December 9, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants