Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Assign a specific selected color and a specific back color for each node#307

Open
HollyHigh wants to merge 2 commits into
jonmiles:masterfrom
HollyHigh:master
Open

Assign a specific selected color and a specific back color for each node#307
HollyHigh wants to merge 2 commits into
jonmiles:masterfrom
HollyHigh:master

Conversation

@HollyHigh
Copy link
Copy Markdown

We can not only set a selected color and a selected background color for the whole tree, but also set different selected colors and different selected background colors for each node. By adding the attribute "selectedColor", and "selectedBackColor" for each node when building them.
Usage :

        var tree = [
            {
                text: "Parent 1",
                selectedColor: '#FFFFFF',
                selectedBackColor: '#67a74d',
                nodes: [
                    {
                        text: "Child 1",
                        nodes: [
                            {
                                text: "Grandchild 1",
                                selectedColor: '#FFFFFF',
                                selectedBackColor: '#67a74d'
                            }
                        ]
                    }
                ]
            }
        ]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant