aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/cradio.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cradio.ur')
-rw-r--r--tests/cradio.ur13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cradio.ur b/tests/cradio.ur
new file mode 100644
index 00000000..5b6e9d22
--- /dev/null
+++ b/tests/cradio.ur
@@ -0,0 +1,13 @@
+fun main () =
+s <- source (Some "B");
+let
+ val onc = v <- get s; alert ("Now it's " ^ show v)
+in
+ return <xml><body>
+ <label>Wilbur <cradio source={s} value="A" onchange={onc}/></label>
+ <label>Walbur <cradio source={s} value="B" onchange={onc}/></label>
+
+ Hello, I'm <dyn signal={s <- signal s; return <xml>{[s]}</xml>}/>.
+ I'll be your waiter for this evening.
+ </body></xml>
+end