File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,17 @@ class ReactSortableTree extends Component {
173173
174174 render ( ) {
175175 const {
176- style = { } ,
176+ style,
177+ className,
177178 rowHeight,
178179 } = this . props ;
179180 const { rows } = this . state ;
180181
181182 return (
182- < div className = { styles . tree } style = { { height : '100%' , ...style } } >
183+ < div
184+ className = { styles . tree + ( className ? ` ${ className } ` : '' ) }
185+ style = { { height : '100%' , ...style } }
186+ >
183187 < AutoSizer >
184188 { ( { height, width} ) => (
185189 < VirtualScroll
@@ -238,6 +242,7 @@ ReactSortableTree.propTypes = {
238242
239243 // Style applied to the container wrapping the tree (style defaults to {height: '100%'})
240244 style : PropTypes . object ,
245+ className : PropTypes . string ,
241246
242247 // Height of each node row, used for react-virtualized
243248 rowHeight : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . func ] ) ,
@@ -255,6 +260,7 @@ ReactSortableTree.propTypes = {
255260
256261ReactSortableTree . defaultProps = {
257262 rowHeight : 62 ,
263+ style : { } ,
258264 scaffoldBlockPxWidth : 44 ,
259265 loadCollapsedLazyChildren : false ,
260266} ;
You can’t perform that action at this time.
0 commit comments