Search
DecadeView.draw Method
See Also
 






DateTimeView.draw override.

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

 Syntax

JavaScript  Copy Code

function draw ()

 Example

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

JavaScript  Copy Code

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


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

 See Also