Interface HasEventRemoveClickHandlers
- All Superinterfaces:
HasHandlers
-
Method Summary
Modifier and TypeMethodDescriptionCalled whenever the close icon of anevent canvas
is clicked in theday
,week
andtimeline
views, or when theremove button
is pressed in theevent editor
.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addEventRemoveClickHandler
Called whenever the close icon of anevent canvas
is clicked in theday
,week
andtimeline
views, or when theremove button
is pressed in theevent editor
.Implement this method to intercept the automatic removal of data. You can Call
CalendarEventRemoveClick.cancel()
from withinEventRemoveClickHandler.onEventRemoveClick(com.smartgwt.client.widgets.calendar.events.CalendarEventRemoveClick)
to prevent the default action (callingremoveEvent()
) and instead take action of your own. For example, returning false from this method and then showing a custom confirmation dialog - if the user cancels, do nothing, otherwise make a call toremoveEvent(event)
, passing the event.- Parameters:
handler
- the eventRemoveClick handler- Returns:
HandlerRegistration
used to remove this handler
-