view examples/dateboxMain.ur @ 34:2d195bee1efa

CKeditor wrapper
author Adam Chlipala <adam@chlipala.net>
date Thu, 21 Nov 2013 18:19:02 -0500
parents 93140c5cc972
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>