You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -84,9 +84,10 @@ This component does not depend on any other package, except Vue 3
84
84
| 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. |
85
85
| 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']`|
86
86
| 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. |
87
-
| focus-offset-x |`-35`| Number | X plane offset when scrolling to focused element |
88
-
| focus-offset-y |`-15`| Number | Y plane offset when scrolling to focused element |
89
-
| focus-delay |`300`| Number | Delay in milliseconds, before focusing |
87
+
| focus-sticky |`false`| Boolean | Focus sticky, will keep 'sticking' to the focused element, even when object undergoes changes or you open and close levels, `false` by default. |
88
+
| focus-offset-x |`-35`| Number | X plane offset when scrolling to focused element |
89
+
| focus-offset-y |`-15`| Number | Y plane offset when scrolling to focused element |
90
+
| focus-delay |`300`| Number | Delay in milliseconds, before focusing |
90
91
| 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`|
91
92
| 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. |
92
93
| escape-quotes |`false`| Boolean | Strings will have escaped double quotes, " will be converted to \\" |
0 commit comments