view examples/datebox.ur @ 15:8300d5f0dc19

Replace ChangePoller with SourceL, plus some other rearrangements
author Adam Chlipala <adam@chlipala.net>
date Sun, 07 Aug 2011 14:38:52 -0400
parents 0827320b0f04
children 554e342665fe
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}>
        {Datebox.render dayCtl}
      </body>
    </xml>