view examples/datebox.ur @ 22:4362b15220e4

Comment corrections based on code review.
author Karn Kallio <kkallio@eka>
date Mon, 22 Aug 2011 05:06:15 -0430
parents 8300d5f0dc19
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>