0.1.9 • Published 5 years ago
react-sortable-tree-theme-fabric v0.1.9
React Sortable Tree Fabric GroupList Theme
Features
- Use fabric ui GroupList render node content ,so you can use the feature of it.
Usage
npm install --save react-sortable-tree-theme-fabric
import React, { Component } from 'react';
import SortableTree from 'react-sortable-tree';
import FileExplorerTheme from 'react-sortable-tree-theme-fabric';
export default class Tree extends Component {
constructor(props) {
super(props);
this.state = {
treeData: [
{ title: 'Trained Models' ,
children:[
{
title: 'Income Prediction [trained models]' ,
children:[
{ title: 'Income Prediction [trained models-sub]' }
]
}
]
},
{ title: 'Data Format Conversions' ,
children:[
{ title: 'Convert to ARFF'}
]
},
],
};
}
render() {
return (
<div style={{ height: 400 }}>
<SortableTree
treeData={this.state.treeData}
onChange={treeData => this.setState({ treeData })}
theme={FileExplorerTheme}
/>
</div>
);
}
}
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago