1.0.4 • Published 5 years ago

grapher-json-ui v1.0.4

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

Grapher-JSON-UI

Simple Vue component with basic GUI to print and/or edit JSON data.

Demo

Install

npm install grapher-json-ui --save
yarn add grapher-json-ui

Usage (default)

<template>
    <grapher v-model="myData" />
</template>

<script>
import 'grapher-json-ui/dist/index.css'

import Grapher from 'grapher-json-ui'

export default {
    components: { Grapher },
    data: () => ({
        myData: {
            test: 'Hello world'
        }
    })
}
</script>

Usage (edit mode)

<template>
    <grapher v-model="myData" :editable="true" />
</template>

<script>
import 'grapher-json-ui/dist/index.css'

import Grapher from 'grapher-json-ui'

export default {
    components: { Grapher },
    data: () => ({
        myData: {
            test: 'Hello world'
        }
    })
}
</script>

Props

{
    editable: {
        type: Boolean,
        default: false
    },
    brackets: {
        type: Boolean,
        default: true
    },
    comma: {
        type: Boolean,
        default: true
    }
}
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago