summaryrefslogtreecommitdiff
path: root/tests/cradio.ur
diff options
context:
space:
mode:
authorGravatar Artyom Shalkhakov <artyom.shalkhakov@gmail.com>2018-05-28 21:34:07 +0600
committerGravatar Artyom Shalkhakov <artyom.shalkhakov@gmail.com>2018-05-28 21:34:07 +0600
commit7f6f6045c0c1cc9bd8323e3e7de905e0e46fe82d (patch)
tree5e21a934f0d49d35633ccbc65ab8114d4570d9e0 /tests/cradio.ur
parent373cb403871c0c77f26cb76213adde3aeb278240 (diff)
Adding: cradio (support for client-side radio box).
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