Skip to content

Commit 3e845d1

Browse files
Release v1.1.2
1 parent c43f5c0 commit 3e845d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ This component does not depend on any other package, except Vue 3, >2.7.5
5757
| open-level | `0` | Number, String, Array | Default is `0` or folded. Number or String like (1 or '2' or 3) will open all levels up to that level. Array of levels like [2,3,5] will pre-open specifically those levels only, if 0 is not specified, it will still be folded initially. |
5858
| open-specific | `[]` | Array | Array of elements to pre-open. For ex. `window` object, has `window.navigator` and `window.history`, history has `window.history.state` objects. To pre-open them specify [`'window'`,`'window.history'`,`'window.history.state'`] or just `['window.history.state']` as it requires all of the above objects to be open already. If objects are not descendants then specify separately like this `['window.history.state',` ` 'window.navigator']` |
5959
| focus | `null` | String, Number | Focus element to open, similar to òpen-specific`, but just 1 item. The browser will open and scroll to that element if it is specified. |
60+
| focus-offset-x | `-35` | Number | X plane offset when scrolling to focused element |
61+
| focus-offset-y | `-15` | Number | Y plane offset when scrolling to focused element |
62+
| focus-delay | `300` | Number | Delay in milliseconds, before focusing |
6063
| preview | `5` | Number, Boolean `false` | Number of elements to preview when viewing an object or an array. This can be made less or more depending on performance needs. Less is faster, because there is less rendering. It can also be fully turned off by setting `0` or `false` |
6164
| preview-initial | `true` | Boolean | Initial object's preview can be turned off, to make the item take less space on the screen. Instead of `obj {1, 2, 3, 4, 5}`, it will just be `obj {...}` on the first level, when you open it, it will use `preview` value for the rest of the items. |
6265
| escape-quotes | `false` | Boolean | Strings will have escaped double quotes, " will be converted to \\" |

0 commit comments

Comments
 (0)