perspective icon indicating copy to clipboard operation
perspective copied to clipboard

support for editable enum type

Open jgunstone opened this issue 2 years ago • 1 comments

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: image

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

jgunstone avatar Jul 20 '23 14:07 jgunstone

@jayasuryard31 Post chatgpt content -> get banned

texodus avatar Aug 19 '23 14:08 texodus

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.

ArjunPK7 avatar Oct 09 '23 07:10 ArjunPK7