diff options
Diffstat (limited to 'tests/tbody.ur')
-rw-r--r-- | tests/tbody.ur | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tbody.ur b/tests/tbody.ur new file mode 100644 index 00000000..53bc0296 --- /dev/null +++ b/tests/tbody.ur @@ -0,0 +1,13 @@ +fun main () : transaction page = + s <- source []; + entry <- source ""; + return <xml><body> + <table> + <dyn signal={s <- signal s; + return (List.mapX (fn s => <xml><tr><td>{[s]}</td></tr></xml>) s)}/> + </table> + + Add one: <ctextbox source={entry}/> <button onclick={e <- get entry; + v <- get s; + set s (e :: v)}/> + </body></xml> |