diff options
Diffstat (limited to 'tests/checkbox.lac')
-rw-r--r-- | tests/checkbox.lac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/checkbox.lac b/tests/checkbox.lac new file mode 100644 index 00000000..6d7ee34c --- /dev/null +++ b/tests/checkbox.lac @@ -0,0 +1,10 @@ +val handler = fn x => <html><body> + {if x.A then cdata "Yes" else cdata "No"} +</body></html> + +val main = fn () => <html><body> + <lform> + <checkbox{#A}/> How about it?<br/> + <submit action={handler}/> + </lform> +</body></html> |