react-sortable-tree-theme-file-explorer
react-sortable-tree-theme-file-explorer copied to clipboard
file explorer theme is not working..
There is any error in console but it still default theme...
import * as React from 'react';
import SortableTree,{addNodeUnderParent, removeNodeAtPath} from 'react-sortable-tree';
import {FileExplorerTheme} from 'react-sortable-tree-theme-file-explorer';
<SortableTree
theme={FileExplorerTheme}
treeData={this.state.treeData}
onChange={treeData => this.setState({treeData})} ....
I think it’s the brackets around the theme name in your import statement there.
I cannot see icons what is problem?
@top1st The icons were just something I added for example usage. Check out the demo code here to see how I did it: https://github.com/fritz-c/react-sortable-tree-theme-file-explorer/blob/master/demo/app.js
@fritz-c Thank you very much It is best solution for sortable file explorer with react ;)
@fritz-c I can see your code in generateNodeProps icons: and buttons: Is there any other things possible like divs spans etc And How i can add a my custom component to GenerateNodeProps