Skip to content
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

table header styling is applied to 1st table row as well #343

Open
adas172002 opened this issue Jan 14, 2025 · 1 comment
Open

table header styling is applied to 1st table row as well #343

adas172002 opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@adas172002
Copy link

Hi,

I am looking for suggestions on styling table header.

Currently I am using HexaPDF::Document::Layout#table with arguments header and cell_style. For header I am passing a simple lambda that returns array containing a single array of strings that represent my table headers. Styling is done inside lambda that is a value for cell_style argument: it tests lambdas cell and applies header styling when cell.row == 0 However, this leads to header styling being also applied to 1st row of table data.

@gettalong gettalong self-assigned this Jan 14, 2025
@gettalong
Copy link
Owner

Thanks for reporting - I understand the problem and have to think about a solution.

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

No branches or pull requests

2 participants