Skip to content

Commit 5bef44b

Browse files
authored
feat: row direction support (#337)
* css direction change * direction attribute added to test snapshot * direction attr set to 'ltr' by default, ltr classes added * updating tests and cleaning up * removing rtl from demo * prettier * default rowDirection=ltr * update props * documentation * updating snapshot
1 parent 6556e4d commit 5bef44b

11 files changed

+889
-28
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default class Tree extends Component {
9393
| onVisibilityToggle | func | Called after children nodes collapsed or expanded. <div>`({ treeData: object[], node: object, expanded: bool, path: number[] or string[] }): void`</div> |
9494
| onDragStateChanged | func | Called when a drag is initiated or ended. <div>`({ isDragging: bool, draggedNode: object }): void`</div> |
9595
| maxDepth | number | Maximum depth nodes can be inserted at. Defaults to infinite. |
96+
| rowDirection | string | Adds row direction support if set to `'rtl'` Defaults to `'ltr'`. |
9697
| canDrag | func or bool | Return false from callback to prevent node from dragging, by hiding the drag handle. Set prop to `false` to disable dragging on all nodes. Defaults to `true`. <div>`({ node: object, path: number[] or string[], treeIndex: number, lowerSiblingCounts: number[], isSearchMatch: bool, isSearchFocus: bool }): bool`</div> |
9798
| canDrop | func | Return false to prevent node from dropping in the given location. <div>`({ node: object, prevPath: number[] or string[], prevParent: object, prevTreeIndex: number, nextPath: number[] or string[], nextParent: object, nextTreeIndex: number }): bool`</div> |
9899
| theme | object | Set an all-in-one packaged appearance for the tree. See the [Themes](#themes) section for more information. |

0 commit comments

Comments
 (0)