annotate select.ur @ 26:86857ae0f386
Change more dashes to slashes, for JavaScript compatibility
author |
Adam Chlipala <adam@chlipala.net> |
date |
Fri, 09 Dec 2011 17:38:20 -0500 |
parents |
4d8165e8f89a |
children |
|
rev |
line source |
adam@1
|
1 fun crender r =
|
adam@1
|
2 <xml><cselect source={r.Selected}>
|
adam@1
|
3 {List.mapX (fn r' => <xml><coption value={r'.Key}>{[r'.Display]}</coption></xml>) r.Choices}
|
adam@1
|
4 </cselect></xml>
|
adam@1
|
5
|
adam@1
|
6 fun crender' r =
|
adam@1
|
7 <xml><cselect source={r.Selected}>
|
adam@1
|
8 {List.mapX (fn s => <xml><coption>{[s]}</coption></xml>) r.Choices}
|
adam@1
|
9 </cselect></xml>
|