easydropdown icon indicating copy to clipboard operation
easydropdown copied to clipboard

Different value on dropdown

Open Drex-luthor opened this issue 6 years ago • 5 comments

Is it possible to have a different text displayed when the drop-down is selected?

Have it say "Afghanistan" on the drop-down but "AF" when selected.

Drex-luthor avatar May 31 '19 17:05 Drex-luthor

Hi there - I'm afraid this isn't possible currently, as easydropdown follows the behaviour of the native <select> element here.

I'd be open to adding a new API for this if you think it would be useful?

patrickkunka avatar Jun 11 '19 22:06 patrickkunka

Yes, I see. I think it would be very helpful to have something of this sort to have more control of the select element. If possible it would be great to add this as a feature.

Drex-luthor avatar Jun 20 '19 15:06 Drex-luthor

I'm actually trying to implement this same exact feature and I think it would be very helpful and continue to add to the customization of this library. I am trying to hack around by using the api events but it seems your methods to update the dropdown text are overwriting my work

tevdevelops avatar Sep 19 '19 18:09 tevdevelops

Any news?

7iomka avatar Jan 23 '20 18:01 7iomka

I guess @patrickkunka is busy

yoktav avatar Aug 27 '20 18:08 yoktav