I have problem with vaadin calendar add on.
Is it possible to create custom calendar event which will have disabled resize and drag event?
I am not sure ,But try it .
In ScheduleView.java
File
Find cal.setDropHandler(new DropHandler() {
and replace that with following
cal.setDropHandler(new DropHandler() {
return false;
}
public AcceptCriterion getAcceptCriterion() {
return AcceptAll.get();
}
});
same as for BasicEventMoveHandler
cal.setHandler(new BasicEventMoveHandler() {
@Override
public void eventMove(MoveEvent event) {
return false;
}
}
protected void setDates(MovieEvent event, Date start, Date end) {
event.start = start;
event.end = end;
}
});
Same For BasicEventResizeHandler
cal.setHandler(new BasicEventResizeHandler() {
@Override
public void eventResize(EventResize event) {
return false;
}
});
Run the Maven install target and deploy the resulting WAR-file to your server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With