-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
I'd like to have the possibility to customize what is rendered as the name of a collapsed object. For example, if I have an array with lots of objects with an identifying field such as 'id' or 'name', I'd rather display that instead of the default field count.
I have created a PR that accomplishes this with a callback "onObjectName" that can be passed as an additional option. The callback gets handed the object's path and child nodes. Returning null from the callback falls back to displaying the field count.
Awesome project btw, keep going!
narvoxx, alexylem and bnanchen
Metadata
Metadata
Assignees
Labels
No labels