Skip to content

Commit 7a07263

Browse files
committed
fix: remove outdated links from readme
1 parent 0815ca7 commit 7a07263

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default class Tree extends Component {
7676
this.state = {
7777
treeData: [
7878
{ title: 'Chicken', children: [{ title: 'Egg' }] },
79-
{ title: 'Fish', children: [{ title: 'fingerline'}] }
79+
{ title: 'Fish', children: [{ title: 'fingerline' }] },
8080
],
8181
};
8282
}
@@ -116,7 +116,7 @@ export default class Tree extends Component {
116116
| searchFocusOffset | number | Outline the <`searchFocusOffset`>th node and scroll to it. |
117117
| onlyExpandSearchedNodes | boolean | Only expand the nodes that match searches. Collapses all other nodes. Defaults to `false`. |
118118
| searchFinishCallback | func | Get the nodes that match the search criteria. Used for counting total matches, etc.<div>`(matches: { node: object, path: number[] or string[], treeIndex: number }[]): void`</div> |
119-
| dndType | string | String value used by [react-dnd](https://react-dnd.github.io/react-dnd/about) (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 |
119+
| dndType | string | String value used by [react-dnd](https://react-dnd.github.io/react-dnd/about) (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 |
120120
| 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> |
121121
| reactVirtualizedListProps | object | Custom properties to hand to the internal [react-virtualized List](https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md#prop-types) |
122122
| style | object | Style applied to the container wrapping the tree (style defaults to `{height: '100%'}`) |
@@ -135,23 +135,23 @@ Need a hand turning your flat data into nested tree data?
135135
Want to perform add/remove operations on the tree data without creating your own recursive function?
136136
Check out the helper functions exported from [`tree-data-utils.js`](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js).
137137

138-
- [**`getTreeFromFlatData`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L979): Convert flat data (like that from a database) into nested tree data.
139-
- [**`getFlatDataFromTree`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L946): Convert tree data back to flat data.
140-
- [**`addNodeUnderParent`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L614): Add a node under the parent node at the given path.
141-
- [**`removeNode`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L534): For a given path, get the node at that path, treeIndex, and the treeData with that node removed.
142-
- [**`removeNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L506): For a given path, remove the node and return the treeData.
143-
- [**`changeNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L409): Modify the node object at the given path.
144-
- [**`map`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L359): Perform a change on every node in the tree.
145-
- [**`walk`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L326): Visit every node in the tree in order.
146-
- [**`getDescendantCount`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L60): Count how many descendants this node has.
147-
- [**`getVisibleNodeCount`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L248): Count how many visible descendants this node has.
148-
- [**`getVisibleNodeInfoAtIndex`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L286): Get the <targetIndex>th visible node in the tree data.
149-
- [**`toggleExpandedForAll`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L389): Expand or close every node in the tree.
150-
- [**`getNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L573): Get the node at the input path.
151-
- [**`insertNode`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L885): Insert the input node at the specified depth and minimumTreeIndex.
152-
- [**`find`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1077): Find nodes matching a search query in the tree.
153-
- [**`isDescendant`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1027): Check if a node is a descendant of another node.
154-
- [**`getDepth`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1045): Get the longest path in the tree.
138+
- **`getTreeFromFlatData`**: Convert flat data (like that from a database) into nested tree data.
139+
- **`getFlatDataFromTree`**: Convert tree data back to flat data.
140+
- **`addNodeUnderParent`**: Add a node under the parent node at the given path.
141+
- **`removeNode`**: For a given path, get the node at that path, treeIndex, and the treeData with that node removed.
142+
- **`removeNodeAtPath`**: For a given path, remove the node and return the treeData.
143+
- **`changeNodeAtPath`**: Modify the node object at the given path.
144+
- **`map`**: Perform a change on every node in the tree.
145+
- **`walk`**: Visit every node in the tree in order.
146+
- **`getDescendantCount`**: Count how many descendants this node has.
147+
- **`getVisibleNodeCount`**: Count how many visible descendants this node has.
148+
- **`getVisibleNodeInfoAtIndex`**: Get the <targetIndex>th visible node in the tree data.
149+
- **`toggleExpandedForAll`**: Expand or close every node in the tree.
150+
- **`getNodeAtPath`**: Get the node at the input path.
151+
- **`insertNode`**: Insert the input node at the specified depth and minimumTreeIndex.
152+
- **`find`**: Find nodes matching a search query in the tree.
153+
- **`isDescendant`**: Check if a node is a descendant of another node.
154+
- **`getDepth`**: Get the longest path in the tree.
155155

156156
## Themes
157157

0 commit comments

Comments
 (0)