Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file explorer theme is not working.. #7

Open
sboga94 opened this issue Nov 9, 2017 · 5 comments
Open

file explorer theme is not working.. #7

sboga94 opened this issue Nov 9, 2017 · 5 comments

Comments

@sboga94
Copy link

sboga94 commented Nov 9, 2017

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



@fritz-c
Copy link
Member

fritz-c commented Nov 9, 2017

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

@top1st
Copy link

top1st commented Nov 14, 2017

image

image

I cannot see icons what is problem?

@fritz-c
Copy link
Member

fritz-c commented Nov 14, 2017

@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

@top1st
Copy link

top1st commented Nov 14, 2017

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

@top1st
Copy link

top1st commented Nov 14, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants