diff options
Diffstat (limited to 'tests/dynList.ur')
-rw-r--r-- | tests/dynList.ur | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/dynList.ur b/tests/dynList.ur new file mode 100644 index 00000000..09b3ee4c --- /dev/null +++ b/tests/dynList.ur @@ -0,0 +1,22 @@ +fun main () = + b <- source True; + let + fun textboxList xs = <xml> + <table> + {List.mapX (fn src => <xml><tr> + <td dynClass={return null} dynStyle={b <- signal b; + if b then + return (STYLE "width: 500px") + else + return (STYLE "width: 100px")}> + <ctextbox source={src}/> + </td></tr></xml>) xs} + </table> + </xml> + in + s <- source "foo"; + return <xml><body> + <ccheckbox source={b}/> + {textboxList (s :: s :: [])} + </body></xml> + end |