Skip to content

"Pagination"/summaries of long arrays #195

Open
@joshkel

Description

@joshkel

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    V2To include in Version 2user requestRequested by user

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions