contributte / contributte/datagrid

Bug? Datagrid TreeView not adding classes on content rows

Open Beginner friendly
#1,290 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T: Bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.