Jump to content

Calendar DayClick


Recommended Posts

Hi,

is it possible to tap day on a mobile device and an event will be fired.

On Desktop does work - on mobile device does not work ?

Link to post
Share on other sites
8 hours ago, ice said:

is it possible to tap day on a mobile device and an event will be fired.

On Desktop does work - on mobile device does not work ?

Hi,

Sorry for the late reply...

I will try to check it again.

Link to post
Share on other sites
On 10/7/2020 at 11:36 AM, ice said:

is it possible to tap day on a mobile device and an event will be fired.

But you can try to do this using additional code, first of all for the month view I think.

Link to post
Share on other sites
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 post
Share on other sites
with firefox you can simulate mobile devices.
there is a button where you can switch the simulation of touches on and off
Link to post
Share on other sites
×
×
  • Create New...