comparison select.ur @ 1:4d8165e8f89a

Some help with building forms
author Adam Chlipala <adam@chlipala.net>
date Thu, 06 Jan 2011 16:45:47 -0500
parents
children
comparison
equal deleted inserted replaced
0:37eefd0a2ed4 1:4d8165e8f89a
1 fun crender r =
2 <xml><cselect source={r.Selected}>
3 {List.mapX (fn r' => <xml><coption value={r'.Key}>{[r'.Display]}</coption></xml>) r.Choices}
4 </cselect></xml>
5
6 fun crender' r =
7 <xml><cselect source={r.Selected}>
8 {List.mapX (fn s => <xml><coption>{[s]}</coption></xml>) r.Choices}
9 </cselect></xml>