0.0.6 • Published 1 year ago

v3-jsoneditor v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

v3-jsoneditor

"Vue 3 JSON Editor" is a web-based application built with the Vue 3 JavaScript framework that allows users to easily create, view, and edit JSON data in a user-friendly interface.

Try the demo

https://v3-jsoneditor.netlify.app/

Installation

npm install v3-jsoneditor

Using

Import globally

import {createApp} from 'vue'
import App from './App.vue'
import Vue3Jsoneditor from 'v3-jsoneditor/src/Vue3Jsoneditor.vue'

const app = createApp(App)

// Register the VJsoneditor component globally
app.component('vue3-jsoneditor', Vue3Jsoneditor)

app.mount('#app')

Import

import Vue3Jsoneditor from 'v3-jsoneditor/src/Vue3Jsoneditor.vue'

export default {
    name: 'app',
    components: {
        Vue3Jsoneditor
    },
    data() {
        return {
            json: {
                "hello": "vue"
            }
        }
    },
}
<Vue3Jsoneditor ref="editor" v-model="json" :options="options"></Vue3Jsoneditor>

Options

NameDescriptiontypedefault
optionsJsoneditor params, You can look at the detailed configurationObject{ mode: 'code' }
v-modelObject valueObject{ }
currentModecurrent edit modeStringcode
heightDefault heightString-

Events

NameDescription
changecalled on json update
update:modelValueCalled on model value update
errorError callback

Support

If this helped you in any way, you can contribute to this project for long term survival by supporting me

💜 Support my open-source work on GitHub

Be sure to check out my sponsor page.

Thank you so much!!!

License

MIT

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago