summaryrefslogtreecommitdiff
path: root/tests/ccheckbox.ur
blob: d70c24a5655f4a019dd45be138ceb61f45bd01cc (plain)
1
2
3
4
5
6
7
8
fun main () : transaction page =
    s <- source True;
    t <- source 1;
    return <xml><body><ccheckbox source={s} onclick={fn _ => set t 3}/>
      <dyn signal={s <- signal s;
                   t <- signal t;
                   return <xml>{[s]} {[t]}</xml>}/>
    </body></xml>