What is the difference between the usage of combobox(key) and combobox(string)?

I thought that the only difference between these two ComboBoxes was the option specification type, but it seems there are other differences as well.
There are two events for generating child widgets for Key OnGenerateContentWidget and OnGenerateItemWidget, while for String there is only OnGenerateWidget.
I don’t know why the specifications are different, but I want to use String, so I would like to know how its usage differs from Key.

ComboBox (String) has a list of strings as items. When one is selected you get which string it is.

ComboBox (Key) uses widgets as Items. That adds more complexity in creating this but also in the possibilities you can do with it.
e.g. you could have thumbnails in your items, play animations when you selected an item or have an event fire doing other stuff.

So it depends on what you want to achieve…

1 Like

I see. These seem quite different.
I thought these were the same thing since they are both combo boxes.
Maybe these need names that clarify the difference…
Anyway, this was helpful. Key seems much more convenient.
Thank you for answering.