treemindmap

1.7.0 • Public • Published

npm version Build Status

Tree Mind Map

This software is released under the MIT License, see LICENSE.txt.

What is this?

This is a NPM component of mind map tool written in React. https://www.npmjs.com/package/treemindmap

What's it look like?

Sample page -- https://treemindmap.netlify.com/ howto

How to use this component?

Use "" with parameters "initialState" and "stateHandler".

  • "initialState" : The first state to be load in the mindmap
  • "stateHandler" : This is triggered every time the state changed.

For example, you can specify the values as below.

ES6

import {Map} from 'treemindmap'
...
render(
  <Map
    initialState={initialdata}
    stateHandler={state => {
      doSomething(state);
    }}
  />,
  document.getElementById('root')
);

ES5

const ReactDOM = require('react-dom');
const Render=require('treemindmap').Render;
...
Render(
  initialdata,
  (state) => {
    doSomething(state);
  },
  'root', /* id of DOM */
  ReactDOM
)

Readme

Keywords

none

Package Sidebar

Install

npm i treemindmap

Weekly Downloads

1

Version

1.7.0

License

MIT

Unpacked Size

840 kB

Total Files

10

Last publish

Collaborators

  • 3yaa3yaa