Looks good. Only issue is that I need to limit some functions. For exampl

Looks good.

Only issue is that I need to limit some functions. For example, I need to stop my users changing event dates by dragging them around.

Is it possible to stop that? I’m hoping to use it as a read-only view for those users with lower priviledges. Thanks!

Hi,

have you tried to set the calendar read only? For instand calendar.setReadOnly(true);?

Thanks for the reply. That method doesn’t appear to be available.

I have the maven dependency in my POM as stated above (2.4.0) and create an instance as per the example:

FullCalendar calendar = FullCalendarBuilder.create().build();

However, there is no setReadOnly method available on the calendar object.

Am I instanciating it incorrectly?

Yes, you are right, there is no api for that yet. I was sure it should have some. We’re going to check that in detail and try to add something.

https://github.com/stefanuebe/vaadin_fullcalendar/issues/84

Sorry for the inconvenience :)

It’s me again, now I remembered, why there is no dedicated method to set the whole calendar read only - the FC library does not support setting the whole calendar into a read only mode at once.

Instead the single entries have to be set “editable” or not. Therefore this same approach has to be applied to the Java component.

This means, in the case, that the calendar shall be shown in a read only mode, you have to set the entries to “not editable”, for instance

Button readOnly = new Button("Set read only", event -> {
	List<Entry> entries = calendar.getEntries();
	for (Entry entry : entries) {
		entry.setEditable(false);
	}
	calendar.updateEntries(entries);
});

Nevertheless, we check if there might be some convenience method to set the calendar to editable or not editable at once.