2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-20 20:00:37 +03:00

Merge branch 'sort-object-keys' into 1.x

This commit is contained in:
STAFYNIAK Sacha
2018-09-17 07:32:55 +02:00
4 changed files with 38 additions and 15 deletions
+13 -7
View File
@@ -17,7 +17,12 @@ $ yarn add vue-json-viewer
## Example:
``` html
<json-viewer :value="jsonData" :show-copy="true" icon-prefix="ion" :show-bigger="true"></json-viewer>
<json-viewer
:value="jsonData"
:show-copy="true"
icon-prefix="ion"
:show-bigger="true"
:sort-keys="true" />
```
``` js
@@ -50,9 +55,10 @@ export default {
## Options:
| Property | Description |
| ----------- |:-------------|
| value | json data |
| show-copy | display the copy button |
| show-bigger | display the bigger button |
| icon-prefix | Custom Font icon prefix |
| Property | Description |
| ----------- |:------------- |
| value | json data |
| show-copy | display the copy button |
| show-bigger | display the bigger button |
| icon-prefix | Custom Font icon prefix |
| sort-keys | Sort items by key names |