Cengiz Dogan
Cengiz Dogan

Reputation: 149

Extjs Tree how to change text color of child elements?

i have a tree and i want to change text color of child elements.

{
                text: "alegrbra",
                leaf: true,
                iconCls : 'button-with-icon icon-flag_green',
                style: {
                    'color': 'red'
                }
            }

i can change icon but couldnt change the color.

How can i give style that element.

Upvotes: 0

Views: 924

Answers (1)

Cengiz Dogan
Cengiz Dogan

Reputation: 149

i added

cls : 'rednode'

, and the css is

     .rednode{
color: red;
}

It fix me the problem

Upvotes: 1

Related Questions