HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
437 stars 77 forks source link

wanted: example of dropdown #244

Open avanmeul opened 3 years ago

avanmeul commented 3 years ago

It would be nice if the samples and/or documentation included a trivial example (i.e. with 2 hardcoded options) of a dropdown using select + option.

It looks to me like you make them something like this:

cbxVector <- UI.select #+ map ((i, _) -> UI.option #+ [i]) [(string "choice1", 1), (string "choice2", 2), (string "choice3", 3)]