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

CSS class for expandable rows when using Tree #1144

Closed
schallm opened this issue Jun 10, 2015 · 2 comments
Closed

CSS class for expandable rows when using Tree #1144

schallm opened this issue Jun 10, 2015 · 2 comments

Comments

@schallm
Copy link
Contributor

schallm commented Jun 10, 2015

I'm trying to style the expandable rows of a dgrid tree. I would like the row to be a different color to allow the user to see them easier.

My current css looks like the following:

existingItemsGrid .dgrid-content > div.dgrid-row {

background-color: #ddd; 

}

This works, but I have to add a rule for each grid.

The dgrid/tree mixin could add a class to the entire grid allowing for something like:

.dgrid-tree .dgrid-content > div.dgrid-row {
background-color: #ddd;
}

Or the rows with expanders could have a class added similar to the dgrid-tree-container allowing something like:

.dgrid-tree-expandable {
background-color: #ddd;
}

or

.dgrid-tree-parent {
background-color: #ddd;
}

@kfranqueiro
Copy link
Member

I pushed a branch with a commit that adds the dgrid-row-expandable class to parent rows. If that looks like it'll serve your purpose, I'll merge it to master and dev-0.4 for 0.4.1.

@schallm
Copy link
Contributor Author

schallm commented Jun 11, 2015

That works awesome. Thanks!

kfranqueiro added a commit that referenced this issue Jun 11, 2015
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