Hi Ali Kholmatov,
We are sorry, but your requirement to a have multiple month views in Calendar is not possible with our Calendar control.Please let us know if you have any further queries.
Regards,Deepa L.
|
function valueChange(args: ChangedEventArgs): void {
let title: string = '';
/*Displays selected date in the label*/
if (args.event) {
title = (<HTMLElement>args.event.currentTarget).getAttribute('data-val');
title = title === null ? '' : ' ( ' + title + ' )';
}
(<HTMLInputElement>document.getElementById('date_label')).textContent = 'Selected Value: ' + args.value.toLocaleDateString() + title;
}
|
|
this.default = (): void => {
let calendar: Calendar = new Calendar({
renderDayCell: customDates, change: valueChange
});
calendar.appendTo('#calendar');
};
|
|
function customDates(args: RenderDayCellEventArgs): void {
/*Date need to be customized*/
if (args.date.getDate() === 10) {
let span: HTMLElement;
span = document.createElement('span');
span.setAttribute('class', 'e-icons highlight');
args.element.firstElementChild.setAttribute('title', 'Birthday !');
addClass([args.element], ['e-day', 'special', 'birthday']);
args.element.setAttribute('data-val', ' Birthday !');
args.element.setAttribute('title', 'Birthday !');
args.element.appendChild(span);
}
|