Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikemenaker/vue-json-tree

Vue.js JSON tree viewer component
https://github.com/mikemenaker/vue-json-tree

vue vue2 vuejs2

Last synced: about 1 month ago
JSON representation

Vue.js JSON tree viewer component

Awesome Lists containing this project

README

        

# vue-json-tree
Vue.js JSON tree viewer component

[![GitHub release](https://img.shields.io/github/release/mikemenaker/vue-json-tree.svg)]() [![license](https://img.shields.io/github/license/mikemenaker/vue-json-tree.svg)]()

## Demo:

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

## Installation
### With npm:
```bash
npm i v-json-tree --save
```

### With a CDN:
```html

```

## Usage
### With an ES6 bundler (via npm)
In your component file
```js
import vJsonTree from "v-json-tree";
```

Then register:
```
components: {
vJsonTree
},
```

### With a CDN
```html

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

new Vue({
// ...
})

```

## Props:
- data - 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