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
While evaluating json-editor-react as a possible replacement for josdejong/jsoneditor, I noticed that json-editor-react can become slow when rendering large items. Setting collapse helps, but one features that jsoneditor provides by default is a sort of pagination or summary feature for long arrays. For example, an array of 232 objects shows items 0 through 99 then the following text:
displaying 100 of 232 items. show more. show all
The exact number could perhaps be configured via some sort of arrayPageSize or itemsPerPage or maxArrayItems prop or similar.
I can try and submit a PR if this feature seems worthwhile.
Use case
Faster rendering, more compact display.
The text was updated successfully, but these errors were encountered:
FYI, you can pass a custom "collapse" function, so you could specify that if there are more than say 50 items, the node should start collapsed, but it would still open up deeper nodes if they are smaller.
Suggestion
While evaluating json-editor-react as a possible replacement for josdejong/jsoneditor, I noticed that json-editor-react can become slow when rendering large items. Setting
collapse
helps, but one features that jsoneditor provides by default is a sort of pagination or summary feature for long arrays. For example, an array of 232 objects shows items 0 through 99 then the following text:The exact number could perhaps be configured via some sort of
arrayPageSize
oritemsPerPage
ormaxArrayItems
prop or similar.I can try and submit a PR if this feature seems worthwhile.
Use case
Faster rendering, more compact display.
The text was updated successfully, but these errors were encountered: