-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add an attribute on a column #13
Comments
i think you can use like this $table->addCellAttributes('row_name', 'col_name', [
'style' => 'font-size: 1rem; background: #f6ffb0;'
]); |
Thanks for this feedback, it doesn't work :Uncaught Error: Call to undefined method Donquixote\Cellbrush\Table\Table::addCellAttributes() |
Oh sorry, this issue has been around for a long time and the repository owner never responded and updated. Some people have also tried to do a pull request but no response. I also provide a similar repository that I adapted from this repository and there are some additions that might help in the future but I have not included detailed documentation. You can try to clone from my repository ay4t/htmltable there I have added the addCellAttributes() function |
Hi This used travis CI in the past, but I don't even remember how it works.. |
As for the specific request: |
This repository is awesome, I am very grateful for this library. In my case dealing with reports with PDF output, Because the company I work for requires PDF output. custom column styles are sometimes very necessary. I have tried to use CSS but it didn't work, maybe because I did it wrong but with custom style on the column it makes the display in pdf perfect |
Can you post the desired html output? Other parts of this discussion and open PRs talk about attributes for a specific cell, but it seems you want to target the entire column.
vs
|
See this PR, #9 |
Issue #13: Let TableSection rely on ColumnClassesTrait.
See
Please help testing and reviewing! We need to be careful with changes to interfaces, these can break existing implementations that implement these interfaces. |
If this is about styles, do we need special handling for them?
I have done html to pdf in the past. |
Thanks for the feedback and for your component which is great. My code only requires that I add attributes to columns enbtieere and/or cells. My code requires:
setCellAttribute($row, $col, $name, $value). would be ideal |
…-interface-changes Issue #13: Add setColAttribute(), without changing interfaces.
Everything merged and released as 1.1.0. |
You could blog about it and link to it :) |
Hello,
I want to add the With attribute on a column. I did not find the method to do this. Do you have an example of code?
regards
The text was updated successfully, but these errors were encountered: