@@ -97,7 +97,7 @@ let CalendarBasicComp = (function () {
97
97
resources : any ;
98
98
resourceName : string
99
99
onEvent ?: any ;
100
- onEventDrop ?: any ;
100
+ onDropEvent ?: any ;
101
101
editable ?: boolean ;
102
102
showEventTime ?: boolean ;
103
103
showWeekends ?: boolean ;
@@ -248,16 +248,16 @@ let CalendarBasicComp = (function () {
248
248
return (
249
249
< Event
250
250
className = { `event ${ sizeClass } ${ stateClass } ` }
251
- bg = { eventInfo . backgroundColor }
251
+ $ bg= { eventInfo . backgroundColor }
252
252
theme = { theme ?. theme }
253
- isList = { isList }
254
- allDay = { showAllDay }
253
+ $ isList= { isList }
254
+ $ allDay= { Boolean ( showAllDay ) }
255
255
$style = { props . style }
256
256
>
257
257
< div className = "event-time" > { eventInfo . timeText } </ div >
258
258
< div className = "event-title" > { eventInfo . event . title } </ div >
259
259
< Remove
260
- isList = { isList }
260
+ $ isList= { isList }
261
261
className = "event-remove"
262
262
onClick = { ( e ) => {
263
263
e . stopPropagation ( ) ;
@@ -526,7 +526,7 @@ let CalendarBasicComp = (function () {
526
526
} }
527
527
eventDragStop = { ( info ) => {
528
528
if ( info . view ) {
529
- props . onEventDrop ( "dropEvent" ) ;
529
+ props . onDropEvent ( "dropEvent" ) ;
530
530
}
531
531
} }
532
532
/>
@@ -540,8 +540,8 @@ let CalendarBasicComp = (function () {
540
540
resourcesEvents : { propertyView : ( arg0 : { } ) => any ; } ;
541
541
resources : { propertyView : ( arg0 : { } ) => any ; } ;
542
542
resourceName : { propertyView : ( arg0 : { } ) => any ; } ;
543
- onEvent : { getPropertyView : ( ) => any ; } ;
544
- onDropEvent : { getPropertyView : ( ) => any ; } ;
543
+ onEvent : { propertyView : ( { title } ?: { title ?: string } ) => any; } ;
544
+ onDropEvent : { propertyView : ( { title } ?: { title ?: string } ) => any; } ;
545
545
editable : { propertyView : ( arg0 : { label : string ; } ) => any ; } ;
546
546
showEventTime : { propertyView : ( arg0 : { label : string ; tooltip : string ; } ) => any ; } ;
547
547
showWeekends : { propertyView : ( arg0 : { label : string ; } ) => any ; } ;
@@ -573,8 +573,12 @@ let CalendarBasicComp = (function () {
573
573
}
574
574
< Section name = { sectionNames . interaction } >
575
575
{ hiddenPropertyView ( children ) }
576
- { children . onEvent . getPropertyView ( ) }
577
- { children . onDropEvent . getPropertyView ( ) }
576
+ < div style = { { display : 'flex' , flexDirection : 'column' , gap : '8px' } } >
577
+ { children . onEvent . propertyView ( ) }
578
+ </ div >
579
+ < div style = { { display : 'flex' , flexDirection : 'column' , gap : '8px' } } >
580
+ { children . onDropEvent . propertyView ( { title : trans ( "calendar.dragDropEventHandlers" ) } ) }
581
+ </ div >
578
582
{ children . editable . propertyView ( { label : trans ( "calendar.editable" ) , } ) }
579
583
</ Section >
580
584
< Section name = { sectionNames . advanced } >
0 commit comments