json-schema-form icon indicating copy to clipboard operation
json-schema-form copied to clipboard

Need a space efficient layout option for large arrays

Open aeberhart opened this issue 3 years ago • 2 comments

We do have the tab and table option, however, these are most suited for arrays of objects. The chips layout is fairly space efficient but does not support autocomplete and still displays all options.

We could display the first 10 items and a ... icon, similar to the hideUndefined option.

aeberhart avatar Dec 30 '21 19:12 aeberhart

Probably the best option is array-select. We'd only need an option to add an entry that is not yet in the options list.

aeberhart avatar Dec 30 '21 19:12 aeberhart

We have the following options:

  • chips layout (need to support autocomplete see #133)
  • using a popup window
  • using array-select in conjunction with an "add" input field (basically the same as chips but options open on focus only)
  • hiding all elements from a certain index onward and only showing them if ... is clicked

aeberhart avatar Jan 03 '22 13:01 aeberhart