view tests/setActive.ur @ 1870:434921f54f54

Add monoize case for 'dml' type
author Adam Chlipala <adam@chlipala.net>
date Tue, 01 Oct 2013 07:33:20 -0400
parents 3d823d8424cc
children
line wrap: on
line source
fun main () : transaction page =
    i <- fresh;
    x <- source <xml/>;
    return <xml>
      <body>
        <dyn signal={signal x} />
        <active code={set x <xml><ctextbox/><ctextbox id={i}/><ctextbox/><active code={giveFocus i; return <xml/>}/></xml>; return <xml/>}/>
      </body>
    </xml>