0.0.1 • Published 6 years ago

json-gui v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Currently Under Construction

What is this?

This is a vue component that edits/views a JSON object. A fantastic tool for hackathons. Screen Shot 2020-08-21 at 7 02 01 PM

You can use the arrow keys to switch between the types (Null, Number, String, List, Object).

How install use?

npm install -s edit-json-vue

Inside your .vue file:

<template>
    <JsonRoot @changeValue="newJsonValue" />
</template>

<script>
let JsonEditor = require("edit-json-vue/src/jsonRoot.vue").default
export default {
    components: { JsonEditor },
    data: ()=>({
        jsonValue,
    }),
    methods: {
        newJsonValue(value) {
            this.jsonValue = value
            console.log(`The user edited the value!`)
            console.log(`Now the value is: ${this.jsonValue}`)
        }
    }
}
</script>