Mercurial > urweb
view tests/radio.ur @ 1897:10974f0dd8a8
Some more EXTRA_DIST
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 21 Nov 2013 15:04:17 -0500 |
parents | a1a1d66aebac |
children |
line wrap: on
line source
fun handler x = return <xml><body> You entered: {[case x.A of None => "nothing at all" | Some v => v]} </body></xml> fun main () = return <xml><body> <form> <radio{#A}> <li><radioOption value="A"/>A</li> <li><radioOption value="B"/>B</li> </radio> <submit action={handler}/> </form> </body></xml>