2.0.4 • Published 3 years ago

ore-json-path-picker v2.0.4

Weekly downloads
59
License
MIT
Repository
github
Last release
3 years ago

ore-json-path-picker

It is a json path picker for react based on json-path-picker. You can use it to create a json tree of any legal json string. And then you can click to choose a node in the tree and got the path string of the node from tree's root. Thank you for giving wonderfull library by zenggo. This library based on zenggo library

demo

install

npm install --save-dev ore-json-path-picker

You need webpack to pack it in your app, and use style-loader and css-loader to ensure the component's style work.

usage

path picker (fully controlled compoment):

<JsonPathPicker json={this.state.json} onChoose={this.onChoosePath} path={this.state.choosenPath} showString={true} />

onChoosePath = (path)=> {...}

1) npm run-script build  
2) npm run-script compile  
3) Copy css file
4) npm login
5) npm publish --access public
2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago