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

Can we have className for each row in react-virtualized list?

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

Description

Hi ,
Is there any possible way to set the className for each row in the rowRenderer function of react-virtualized list? Actually we need to set only height for the parent and child nodes. Do we really need to use nodeContentRenderer/custom renderer just to set the height for the nodes?

Here is the code,
const virtualObj = {
height: 557,
rowHeight: 50,
width: 400,
className: 'tocWrapper'
};

this.onTreeChange(treeData)}
generateNodeProps={this.applyStyles}
scaffoldBlockPxWidth ={10}
maxDepth={this.props.tocLevel}
dndType={this.props.dndType}
canDrop={() => canDrop}
shouldCopyOnOutsideDrop={true}
/>

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.