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

mertsincan opened this issue May 27, 2019 · 0 comments


None yet
1 participant
Copy link

commented May 27, 2019

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 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
You can’t perform that action at this time.