Jump to content

Calendar DayClick


ice

Recommended Posts

8 minutes ago, ice said:

How can try this using in additional code ?

Try this code, for month view:

function afterCreate(sender) 
{
    var calendar = sender;
    calendar.element.on('tap', function(e, target, options) {
        var time = new Date();
        ajaxRequest(calendar, 'rangeselect',
            [
                'sd=' + target.getAttribute('data-date').replace(/-/gi, '') + time.getHours() + time.getMinutes() + time.getSeconds(),
                'ed=' + target.getAttribute('data-date').replace(/-/gi, '') + time.getHours() + time.getMinutes() + time.getSeconds()
            ])
    }, calendar.element, {
        delegate: '.x-calendar-weeks-cell'
    })
}

 

Link to comment
Share on other sites

×
×
  • Create New...