а

How to change the tooltip text which comes while we double click and drag to create an event?


#1

Hi,
I want to change the tooltip text (specifically the format of date ) which is displayed when we create an event by double click and drag.
I configured the tooltip text when a event is dragged by the event “onEventDrag” like this :-

	var calendar = scheduler;
calendar.attachEvent("onEventDrag",function (id, mode, e) {
	var event = calendar.getEvent(id);
	var DateTimeformat = calendar.date.date_to_str("%D %j %M %g:%i %A");
	var Dateformat = calendar.date.date_to_str("%D %j %M");
	var start = '', end = '';

	if (event.start_date_format === "date") {
	    start = Dateformat(event.start_date);
	} else {
	    start = DateTimeformat(event.start_date);
	}
	if (event.end_date_format === 'date') {
	    end = Dateformat(event.end_date);
	} else {
	    end = DateTimeformat(event.end_date);
	}
	calendar.dhtmlXTooltip.show(e, start + " - " + end);
	    return true;
    });

similarly i want to configure the tooltip text which is displayed when we double click and drag to create an event.


#2

Hi,

There are templates to update text and format of dates in the tooltip, please find more details in the documentation
https://docs.dhtmlx.com/scheduler/tooltips.html#templates