-
Notifications
You must be signed in to change notification settings - Fork 0
Main function params
theManAndHisShadow edited this page Dec 15, 2024
·
1 revision
| Parameter | Type | Optional | Default Value | Description |
|---|---|---|---|---|
json |
string |
No | N/A | JSON string to render in the HTML block. |
rootName |
string |
Yes | 'json' |
Name of the root key of the rendered object. |
renderNestedLength |
boolean |
Yes | true |
If true, displays the length of arrays in their type signature. |
highlightLinks |
boolean |
Yes | true |
If true, renders URL strings as clickable <a> tags. |
openLinksInNewTab |
boolean |
Yes | true |
If true, opens links in a new browser tab. |
collapseAll |
boolean |
Yes | false |
If true, renders the HTML block with collapsed content initially. |
showLevel |
number |
Yes | 1 |
Renders all levels except the specified one as collapsed. Ignored if collapseAll is true. |
showTypeOnHover |
boolean |
Yes | true |
If true, shows a tooltip with the type of primitive values when hovered. |
theme |
Theme |
No | N/A | Theme object for styling. Supports predefined themes (andromeda, daylight, dracula, gruvbox-dark, gruvbox-light, github-light, github-dark, horizon, monokai) or custom themes. |
onError |
ErrorHandler |
Yes | undefined |
Callback function for handling errors. Provides access to the Error instance. |
groupBigArrayItemsBy |
number |
Yes | 100 |
Groups large arrays into chunks of the specified size. Minimum value is 25. |