reasoncorp / dossier

Ruby-based report generation/presentation Rails engine.
MIT License
385 stars 79 forks source link

Controlling *width* of each column??? #20

Open mattslay opened 11 years ago

mattslay commented 11 years ago

Is there any way to control or assign the width of a column in the report?

nathanl commented 11 years ago

Short of using a custom view, you could use something like CSS nth-child selectors.

That seems brittle, though. @adamhunter, what would you think of giving each column a CSS class based on its name? Eg, a column named "First Name" would have <th class="first-name"> and <td class="first-name">.

adamhunter commented 11 years ago

Dossier 2.14 (I think) introduced the ability to set self.template = in the class body. I'm thinking of providing a template with dossier that has css selector hooks all over the place for this sort of customization.

Thoughts?