Search
DayView.attach Method
See Also
 






Control.attach override.

Namespace: MindFusion.Common.UI
File: DayView.js

 Syntax

JavaScript  Copy Code

function attach ()

 Example

The following code creates a DayView, which derives from DateTimeView and handles its cellClick event:

JavaScript  Copy Code

// create an year view, showing a list of months
var dayList = new ui.DayView();
dayList.theme = theme;
dayList.commandStrip.visible = false;
dayList.render();
dayList.cellClick.addEventListener(daySelect);
// Draw and attach the menu control.
document.body.appendChild(dayList.draw());
dayList.attach();


// event handler for the cellClick method
function daySelect(sender, args)
{
 //handle the event
        var minValue = args.date.getDay() - 1;
 var maxValue = args.date.getDay() + 1;
}

 See Also