You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,12 @@ searchFinishCallback | func | Get the nodes that match the search
60
60
dndType | string | String value used by [react-dnd](http://react-dnd.github.io/react-dnd/docs-overview.html) (see overview at the link) for dropTargets and dragSources types. If not set explicitly, a default value is applied by react-sortable-tree for you for its internal use. __NOTE:__ Must be explicitly set and the same value used in order for correct functioning of external nodes
61
61
shouldCopyOnOutsideDrop | func or bool | Return true, or a callback returning true, and dropping nodes to react-dnd drop targets outside of the tree will not remove them from the tree. Defaults to `false`. <div>`({ node: object, prevPath: number[] or string[], prevTreeIndex: number, }): bool`</div>
62
62
reactVirtualizedListProps | object | Custom properties to hand to the [react-virtualized list](https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md#prop-types)
63
-
style | object | Style applied to the container wrapping the tree (style defaults to {height: '100%'})
63
+
style | object | Style applied to the container wrapping the tree (style defaults to `{height: '100%'}`)
64
64
innerStyle | object | Style applied to the inner, scrollable container (for padding, etc.)
65
65
className | string | Class name for the container wrapping the tree
66
66
rowHeight | number or func | Used by react-virtualized. Defaults to `62`. Either a fixed row height (number) or a function that returns the height of a row given its index: `({ treeIndex: number, node: object, path: number[] or string[] }): number`
67
-
slideRegionSize | number | Size in px of the region near the edges that initiates scrolling on dragover.Defaults to `100`.
68
-
scaffoldBlockPxWidth | number | The width of the blocks containing the lines representing the structure of the tree.Defaults to `44`.
67
+
slideRegionSize | number | Size in px of the region near the edges that initiates scrolling on dragover.Defaults to `100`.
68
+
scaffoldBlockPxWidth | number | The width of the blocks containing the lines representing the structure of the tree.Defaults to `44`.
69
69
isVirtualized | bool | Set to false to disable virtualization. Defaults to `true`. __NOTE__: Auto-scrolling while dragging, and scrolling to the `searchFocusOffset` will be disabled.
70
70
nodeContentRenderer | any | Override the default component ([`NodeRendererDefault`](https://github.com/fritz-c/react-sortable-tree/blob/master/src/node-renderer-default.js)) for rendering nodes (but keep the scaffolding generator). This is a last resort for customization - most custom styling should be able to be solved with `generateNodeProps`, a `theme` or CSS rules. If you must use it, is best to copy the component in `node-renderer-default.js` to use as a base, and customize as needed.
71
71
placeholderRenderer | any | Override the default placeholder component ([`PlaceholderRendererDefault`](https://github.com/fritz-c/react-sortable-tree/blob/master/src/placeholder-renderer-default.js)) which is displayed when the tree is empty. This is an advanced option, and in most cases should probably be solved with a `theme` or custom CSS instead.
0 commit comments