3.0.4 • Published 4 years ago

v-json-tree v3.0.4

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

vue-json-tree

Vue.js JSON tree viewer component

GitHub release license

Demo:

https://jsfiddle.net/mikemenaker/8zxwavrk/

Installation

With npm:

npm i v-json-tree --save

With a CDN:

<!-- In <body>, after Vue import -->
<script type="text/javascript" src="https://unpkg.com/v-json-tree/dist/vJsonTree.umd.js"></script>

Usage

With an ES6 bundler (via npm)

In your component file

import vJsonTree from "v-json-tree";

Then register:

components: {
    vJsonTree
  },

With a CDN

<script>
    Vue.component("v-json-tree", vJsonTree);

    new Vue({
        // ...
    })
</script>

Props:

  • data <Object/Array> - Data to format into tree
  • filterKey - String to filter data
  • fullMarkup - If full mark up is need (quotes and commas)

Slots:

  • hide - What should be used for the hide button
  • expand - What should be used for the expand button
  • more - What should be used for the elipsis when an object/array is hidden
3.0.4

4 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

7 years ago

0.0.1

7 years ago