json-editor icon indicating copy to clipboard operation
json-editor copied to clipboard

Combobox or enum allowing custom values?

Open EternityForest opened this issue 5 years ago • 2 comments

Right now, enums seem to function as a simple select element. Would it be possible to support enums that allow the user to enter a custom value, as seems to be a fairly common case? HTML text fields support this with the datalist property, so it seems like it wouldn't be too hard.

Thanks guys!

EternityForest avatar Oct 21 '20 01:10 EternityForest

How about this? https://github.com/json-editor/json-editor/issues/746#issuecomment-644002162

@germanbisurgi Do we have that here? https://github.com/json-editor/json-editor/wiki

schmunk42 avatar Oct 21 '20 06:10 schmunk42

Looks like there's some discussion here: https://github.com/json-schema-org/json-schema-spec/issues/751

Perhaps the examples option could be used?

EternityForest avatar Dec 07 '21 16:12 EternityForest