Mercurial > gui
view examples/datebox.ur @ 25:a037ed3854e3
Change time format to work portably in JavaScript
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 04 Dec 2011 16:33:48 -0500 |
parents | 554e342665fe |
children |
line wrap: on
line source
fun main () = tm <- now; dayCtl <- Datebox.create tm; load <- return (Datebox.onChange dayCtl (fn d => alert (show d.Day))); return <xml> <head><title>Datebox Example</title></head> <body onload={load}> {Gui.toXml dayCtl} </body> </xml>