frontend-collective / frontend-collective/react-sortable-tree

How to fill background color of a node

Open
#309 7 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

I would like to fill node background with another color other than white, however seems like not able to. Here is what I did.
```
this.setState({ treeData })}
canDrag = {false}
getNodeKey = {({node})=> node.id}
generateNodeProps={(({ node, path, treeIndex}) => {
return ({
title: (



),})}}
/>
```

and this is how it looks. (I want color fill all the node background)
![image](https://user-images.githubusercontent.com/13139744/40148738-a38717c4-593d-11e8-9d5f-faad7b11cb35.png)

Please let me know how to resolve it.

thank you so much.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.