react-sortable-tree-theme-file-explorer icon indicating copy to clipboard operation
react-sortable-tree-theme-file-explorer copied to clipboard

file explorer theme is not working..

Open sboga94 opened this issue 7 years ago • 5 comments

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})}   ....



sboga94 avatar Nov 09 '17 06:11 sboga94

I think it’s the brackets around the theme name in your import statement there.

fritz-c avatar Nov 09 '17 08:11 fritz-c

image

image

I cannot see icons what is problem?

top1st avatar Nov 14 '17 03:11 top1st

@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 avatar Nov 14 '17 05:11 fritz-c

@fritz-c Thank you very much It is best solution for sortable file explorer with react ;)

top1st avatar Nov 14 '17 12:11 top1st

@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

top1st avatar Nov 14 '17 14:11 top1st