vue-json-tree
Vue.js JSON tree viewer component.
Installation
With npm:
With a CDN:
Usage
With an ES6 bundler (via npm)
In your component file
Then register:
components: {
vJsonTree
},
With a CDN
Props:
- data
<Object/Array>
- Data to format into tree - filterKey
<String>
- String to filter data - fullMarkup
<Boolean>
- 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