Skip to content

Commit 5ca9440

Browse files
committed
Accept props for react-virtualized list
1 parent 4f66e30 commit 5ca9440

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/react-sortable-tree.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ class ReactSortableTree extends Component {
331331
() => (rows[index - 1] || null),
332332
matchKeys
333333
)}
334+
{...this.props.reactVirtualizedListProps}
334335
/>
335336
)}
336337
</AutoSizer>
@@ -411,6 +412,10 @@ ReactSortableTree.propTypes = {
411412
// height of a row given its index: `({ index: number }): number`
412413
rowHeight: PropTypes.oneOfType([ PropTypes.number, PropTypes.func ]),
413414

415+
// Custom properties to hand to the react-virtualized list
416+
// https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md#prop-types
417+
reactVirtualizedListProps: PropTypes.object,
418+
414419
// The width of the blocks containing the lines representing the structure of the tree.
415420
scaffoldBlockPxWidth: PropTypes.number,
416421

0 commit comments

Comments
 (0)