view examples/datebox.ur @ 20:554e342665fe

Add a new parameter to Gui.gui
author Adam Chlipala <adam@chlipala.net>
date Sat, 24 Sep 2011 15:47:00 -0400
parents 8300d5f0dc19
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>