Mercurial > urweb
diff lib/ur/basis.urs @ 797:2c463eee89fa
cselect
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 14 May 2009 09:33:48 -0400 |
parents | 87a7702d681d |
children | 9330ba3a2799 |
line wrap: on
line diff
--- a/lib/ur/basis.urs Thu May 14 09:11:58 2009 -0400 +++ b/lib/ur/basis.urs Thu May 14 09:33:48 2009 -0400 @@ -623,13 +623,17 @@ (*** AJAX-oriented widgets *) -con cformTag = fn (attrs :: {Type}) => +con cformTag = fn (attrs :: {Type}) (inner :: {Unit}) => ctx ::: {Unit} -> [[Body] ~ ctx] => - unit -> tag attrs ([Body] ++ ctx) [] [] [] + unit -> tag attrs ([Body] ++ ctx) inner [] [] -val ctextbox : cformTag [Value = string, Size = int, Source = source string] -val button : cformTag [Value = string, Onclick = transaction unit] +val ctextbox : cformTag [Value = string, Size = int, Source = source string] [] +val button : cformTag [Value = string, Onclick = transaction unit] [] + +con cselect = [Cselect] +val cselect : cformTag [Source = source string] cselect +val coption : unit -> tag [Value = string, Selected = bool] cselect [] [] [] (*** Tables *)