Skip to content

Commit b1ff4bc

Browse files
authored
docs: slight formatting changes to README
1 parent fa71535 commit b1ff4bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ searchFinishCallback | func | Get the nodes that match the search
6060
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
6161
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>
6262
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%'}`)
6464
innerStyle | object | Style applied to the inner, scrollable container (for padding, etc.)
6565
className | string | Class name for the container wrapping the tree
6666
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`.
6969
isVirtualized | bool | Set to false to disable virtualization. Defaults to `true`. __NOTE__: Auto-scrolling while dragging, and scrolling to the `searchFocusOffset` will be disabled.
7070
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.
7171
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

Comments
 (0)