1.4.0 • Published 5 years ago

react-jsonpath-editor v1.4.0

Weekly downloads
28
License
MIT
Repository
github
Last release
5 years ago

react-jsonpath-editor

Travis npm package Coveralls

alt text

Usage

install the dependency using npm or yarn

npm i --save react-jsonpath-editor
yarn add react-jsonpath-editor
import React, {Component} from 'react'
import JsonPathEditor from 'react-jsonpath-editor';

class App extends Component {
    render() {
        return <div>
            <JsonPathEditor />
        </div>;
    }
}

Properties

PropsTypeRequiredDescription
inputPropsobjectfalseProperties passed down to the input
valuestringfalseinput default value
jsonobjectfalsejson to test the json path and provide autocompletion
onChangefunctionfalsecallback called when jsonPath changed
editorPositionobjectfalse{x,y} overrides the position of the editor
previewOrientationright or leftfalseDefines orientation of preview. default to right
1.4.0

5 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0-beta.3

6 years ago

1.1.0-beta.2

6 years ago

1.1.0-beta.1

6 years ago

1.1.0-beta

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago