Interface EventRemoveClickHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called whenever the close icon of anevent canvas
is clicked in theday
,week
andtimeline
views, or when theremove button
is pressed in theevent editor
.
-
Method Details
-
onEventRemoveClick
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 withinonEventRemoveClick(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:
event
- the event
-