contributte / contributte/datagrid
Bug? Datagrid TreeView not adding classes on content rows
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 296
- Forks
- 215
- PR merge metrics
- No merged PRs in 30d
Description
When setting tree-view, datagrid do not add custom css classes on content rows. I guess it comes from table view where classing table header is enough. It can be also seen in demo, for example:
Header line - status classes:
"datagrid-tree-item-right-columns-column col-status text-start"
Content lines - status classes:
datagrid-tree-item-right-columns-column text-start
Misses the "col-status" class - this way, u can only add any styling based on first-child, last-child, nth...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the tree-view datagrid rendering path and compare how the demo generates classes for header and content rows. Reproduce the missing col-status class in the demo, then confirm that content rows receive the same column-specific class as the corresponding header cells.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100