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

Add node level info to the nodes of TreeTable #4839

Closed
mertsincan opened this issue May 27, 2019 · 0 comments
Closed

Add node level info to the nodes of TreeTable #4839

mertsincan opened this issue May 27, 2019 · 0 comments
Assignees
Labels
6.2.21 7.0.4 enhancement Additional functionality to current component
Milestone

Comments

@mertsincan
Copy link
Member

Users want to add custom styles to rows according to the node level on TreeTable. Exp; odd and even rows style like in Datatable.

For Premium Layouts, please use the following scss code;
Exp; paradise layout

.ui-treetable {
    .ui-treetable-data {
        tr {
            @for $i from 1 through 10 {
                &.node-level-#{$i} {
                    &:nth-child(odd):not(.ui-state-highlight) {
                        background-color: $contentBgColor;
                    }

                    &:nth-child(even):not(.ui-state-highlight) {
                        background-color: $datableEvenRowBgColor;
                    }
                }
            }
        }
    }
}

Note: The above code can be added into _theme_styles.scss file.

@mertsincan mertsincan added enhancement Additional functionality to current component 6.2.21 7.0.4 labels May 27, 2019
@mertsincan mertsincan added this to the 7.1 milestone May 27, 2019
@mertsincan mertsincan self-assigned this May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.2.21 7.0.4 enhancement Additional functionality to current component
Projects
None yet
Development

No branches or pull requests

1 participant