summaryrefslogtreecommitdiff
path: root/tests/tbody.ur
blob: 53bc02964b1a1c874fb5b20eb6cf372cbfb0ac7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>