Closed jgunstone closed 1 year ago
in https://github.com/rjsf-team/react-jsonschema-form - they use the examples keyword in schemas to tell the UI to use a Combobox. implement the same here
examples
i.e.
from enum import Enum from pydantic import Field, BaseModel class FruitEnum(str, Enum): """fruit example.""" apple = "apple" pear = "pear" banana = "banana" orange = "orange" class CoreIpywidgets(BaseModel): combobox: str = Field(..., examples=FruitEnum._member_names_)
will automatically generate a combobox
in https://github.com/rjsf-team/react-jsonschema-form - they use the
examples
keyword in schemas to tell the UI to use a Combobox. implement the same herei.e.
will automatically generate a combobox