1.1.15 • Published 6 years ago

sortable-tree-smartweb-theme v1.1.15

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

React Sortable Tree Smartweb Theme

theme appearance

Features

  • Contains some external changes, added subtitles and other stuff
  • You can click anywhere on a node to drag it.
  • More compact design, with indentation alone used to represent tree depth.

Usage

npm install --save sortable-tree-smartweb-theme
import React, { Component } from 'react';
import SortableTree from 'react-sortable-tree';
import CustomTheme from 'sortable-tree-smartweb-theme';

export default class Tree extends Component {
  constructor(props) {
    super(props);

    this.state = {
      treeData: [{ title: 'src/', children: [ { title: 'index.js' } ] }],
    };
  }

  render() {
    return (
      <div style={{ height: 400 }}>
        <SortableTree
          treeData={this.state.treeData}
          onChange={treeData => this.setState({ treeData })}
          theme={CustomTheme}
        />
      </div>
    );
  }
}
1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago