diff options
author | Adam Chlipala <adam@chlipala.net> | 2010-12-20 19:28:41 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2010-12-20 19:28:41 -0500 |
commit | 0ecaa53f8c3951d695a4379dd1b353863749963a (patch) | |
tree | ebf76ca34c81803bf8385e4fae1e61bc5bf300d2 /demo/more/expandable.ur | |
parent | 75557c308d78c533a5576f5223e7a67952761fb1 (diff) |
Fix manual mistake about '@' notations; remove obsolete demos
Diffstat (limited to 'demo/more/expandable.ur')
-rw-r--r-- | demo/more/expandable.ur | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/demo/more/expandable.ur b/demo/more/expandable.ur deleted file mode 100644 index 92d8743c..00000000 --- a/demo/more/expandable.ur +++ /dev/null @@ -1,23 +0,0 @@ -con t ctx = source bool * xml ctx [] [] - -fun create [ctx] (x : xml ctx [] []) = - s <- source False; - return (s, x) - -fun expand [ctx] (t : t ctx) = - set t.1 True - -fun collapse [ctx] (t : t ctx) = - set t.1 False - -fun render [ctx] [[Body] ~ ctx] (t : t ([Body] ++ ctx)) = - <xml><dyn signal={b <- signal t.1; - return (if b then - <xml> - <button value="-" onclick={collapse t}/><br/> - {t.2} - </xml> - else - <xml> - <button value="+" onclick={expand t}/><br/> - </xml>)}/></xml> |