SelectDay: function (sender, args)
sender. Event source.
args. Event information.
The SelectDay event occurs on selecting the date in the calendar.
To execute the example, connect the links to PP.js library and to the PP.css visual styles table. In the HTML page place the MonthCalendar component with the ID MC1 and the DateTimeEdit component with the ID DTE1.
<body>
<div id="DTE1"></div>
<br/>
<div id ="MC1"></div>
</body>
<script type="text/javascript">
var DTE = new PP.Ui.DateTimeEdit({
ParentNode: document.getElementById("DTE1"),
Width: 150})
var MC = new PP.Ui.MonthCalendar({
ParentNode: document.getElementById("MC1")})
MC.SelectDay.add(function (sender, args)
{
DTE.setCurrentDate(MC.getCurrentDate())//The SelectDay event handler.
})
</script>
After executing the example on mouse double clicking on the number in the calendar days mode the day is changed in the date editor.
See also: