Our powerful JS Calendar component


Post by tokytok »

Hi,

I'm trying to toggle eventTooltip props dynamically.
I want to display the eventTooltip only on edit mode (when readOnly = false)

When I call "calendar.activeView.refresh();", the readOnly props is updated but not the eventTooltip.

calendarProps = {
	...
	readOnly: true,
	features: {
		eventTooltip: null
	}
}

var calendar = new bryntum.calendar.Calendar(calendarProps);

$('#edit-handler').click(() => {
	calendar.readOnly = false;
	calendar.features.eventTooltip = {
		align : 'l-r',
        };
	calendar.activeView.refresh();
});

Could you help me please ?


Post by mats »

We don't support all things to be reconfigured at runtime. If you want to set alignment of the tooltip - please do so in the config object used in the constructor.

calendarProps = {
	...
	readOnly: true,
	features: {
		eventTooltip: {
                     align : 'l-r'
                }
	}
}

Post Reply