scriptedforms icon indicating copy to clipboard operation
scriptedforms copied to clipboard

variable-dropdown - dropdown labels vs values

Open psychemedia opened this issue 6 years ago • 2 comments

The ipywidgets dropdown allows a list of values to be passed to the dropdown to be displayed and used as selection values, or a dict, in which case the keys are the displayed elements and the values are the values returned from the selection/dropdown widget.

It would be useful if variable-dropdown also supported the use dicts as well as lists in a similar way.

psychemedia avatar Mar 06 '19 13:03 psychemedia

Ahh that is neat. I'm not going to get a chance to implement that in the near future. More than happy to accept a pull request though.

On Thu., 7 Mar. 2019, 12:04 am Tony Hirst, [email protected] wrote:

The ipywidgets dropdown allows a list of values to be passed to the dropdown to be displayed and used as selection values, or a dict, in which case the keys are the displayed elements and the values are the values returned from the selection/dropdown widget.

It would be useful if variable-dropdown also supported the use dicts as well as lists in a similar way.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/301, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe_gdaa439hQ1NzpycQx2OWYD837nks5vT7zigaJpZM4bg1PI .

SimonBiggs avatar Mar 06 '19 19:03 SimonBiggs

Looks like the relevant bit(?) is in Angular Typescript? That is completely alien to me atm unfortunately...

psychemedia avatar Mar 06 '19 22:03 psychemedia