support for editable enum type
Feature Request
this example: https://perspective.finos.org/block/?example=editable
demonstrates the powerful edit functionality of perspective. When editing tabular data it is very common that you want to restrict the user input scope to an enum -
is there any plan or apetite to support this?
Description of Problem:
this shouldn't be allowed:
instead the user should be presented with a dropdown of allowed options only.
Potential Solutions:
I can imagine integrating integrating validation on a change event to prevent bad data entering the grid - but from a user perspective it would be much more intuitive to be presented with valid options rather than being denied invalid ones!
Notes:
there doesn't appear to be explicit support of enum columns here: https://perspective.finos.org/docs/python/#schemas--supported-data-types
i wonder if this could help create this functionality: https://perspective.finos.org/docs/python/#loading-custom-objects
@jayasuryard31 Post chatgpt content -> get banned
You could Implement a feature that presents users with a dropdown list of valid enum options when editing enum columns, making it more intuitive and preventing invalid entries.