jupyter-widgets / ipydatagrid

Fast Datagrid widget for the Jupyter Notebook and JupyterLab
BSD 3-Clause "New" or "Revised" License
579 stars 51 forks source link

Dropdown menu in cell #262

Open joseberlines opened 3 years ago

joseberlines commented 3 years ago

PROBLEM When displaying a ipydatagrid I would like to let the user manually fill some cells. Particular cells can only take values from a particular list.

QUESTION Is it possible to display a dropdown menu for a cell (or for every cell of a column)? (Excel alike)

alternatives If the above mention option is not posible the drop down might be doned outside the table.

Additional context A) use case: classification of texts B) as example the funcioning is the same as filtering the data in the header.

ibdafna commented 3 years ago

I think it would make sense to support this use case, as well as similar other ones such as checkboxes etc. This will require some thinking around how to best design such additions to the codebase, which will also need to go upstream. It would probably make sense to some widget ABC with common methods that all other inheriting classes will implement. @martinRenou Any thoughts on this one?

jgunstone commented 1 year ago

I'd love to see this - perhaps it will become easier once updated to Lumino 2

ollyhensby commented 11 months ago

Any updates on this dropdown functionality being implemented?

This is available in Lumino: image

Happy to look into this. Any guidance on mapping Lumino functionality to the Python API would be much appreciated. Maybe there are some examples already within this repository?