Skip to content

How to fill background color of a node #309

Open
@bfang711

Description

@bfang711

I would like to fill node background with another color other than white, however seems like not able to. Here is what I did.

<SortableTree
            treeData={this.state.treeData}
            onChange={treeData => this.setState({ treeData })}
	    canDrag = {false}
	    getNodeKey = {({node})=> node.id}
            generateNodeProps={(({ node, path, treeIndex}) => {
		return ({
		    title: (
			<div style={{height:'100%', width:'100%', backgroundColor:'cyan'}} >
                        <Checkbox
			      label= {node.name}
			    />
                        </div>),})}}
/>

and this is how it looks. (I want color fill all the node background)
image

Please let me know how to resolve it.

thank you so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions