@@ -31,6 +31,7 @@ import {
3131 StringControl ,
3232 hiddenPropertyView ,
3333 ChangeEventHandlerControl ,
34+ DragEventHandlerControl ,
3435 Section ,
3536 sectionNames ,
3637 dropdownControl ,
@@ -74,6 +75,7 @@ const childrenMap = {
7475 resources : jsonValueExposingStateControl ( "resources" , resourcesDefaultData ) ,
7576 resourceName : withDefault ( StringControl , trans ( "calendar.resourcesDefault" ) ) ,
7677 onEvent : ChangeEventHandlerControl ,
78+ onDropEvent : DragEventHandlerControl ,
7779 editable : withDefault ( BoolControl , true ) ,
7880 showEventTime : withDefault ( BoolControl , true ) ,
7981 showWeekends : withDefault ( BoolControl , true ) ,
@@ -95,6 +97,7 @@ let CalendarBasicComp = (function () {
9597 resources : any ;
9698 resourceName : string
9799 onEvent ?: any ;
100+ onEventDrop ?: any ;
98101 editable ?: boolean ;
99102 showEventTime ?: boolean ;
100103 showWeekends ?: boolean ;
@@ -521,6 +524,11 @@ let CalendarBasicComp = (function () {
521524 props . onEvent ( "change" ) ;
522525 }
523526 } }
527+ eventDragStop = { ( info ) => {
528+ if ( info . view ) {
529+ props . onEventDrop ( "dropEvent" ) ;
530+ }
531+ } }
524532 />
525533 </ ErrorBoundary >
526534 </ Wrapper >
@@ -533,6 +541,7 @@ let CalendarBasicComp = (function () {
533541 resources : { propertyView : ( arg0 : { } ) => any ; } ;
534542 resourceName : { propertyView : ( arg0 : { } ) => any ; } ;
535543 onEvent : { getPropertyView : ( ) => any ; } ;
544+ onDropEvent : { getPropertyView : ( ) => any ; } ;
536545 editable : { propertyView : ( arg0 : { label : string ; } ) => any ; } ;
537546 showEventTime : { propertyView : ( arg0 : { label : string ; tooltip : string ; } ) => any ; } ;
538547 showWeekends : { propertyView : ( arg0 : { label : string ; } ) => any ; } ;
@@ -565,6 +574,7 @@ let CalendarBasicComp = (function () {
565574 < Section name = { sectionNames . interaction } >
566575 { hiddenPropertyView ( children ) }
567576 { children . onEvent . getPropertyView ( ) }
577+ { children . onDropEvent . getPropertyView ( ) }
568578 { children . editable . propertyView ( { label : trans ( "calendar.editable" ) , } ) }
569579 </ Section >
570580 < Section name = { sectionNames . advanced } >
0 commit comments