summaryrefslogtreecommitdiff
path: root/demo/more/select.ur
blob: 17cff4dddbf2a81011489d9e9f8b1416b13baa16 (plain)
1
2
3
fun selectChar choices current =
    List.mapX (fn (ch, label) =>
                  <xml><option value={String.str ch} selected={current = Some ch}>{[label]}</option></xml>) choices