Skip to content

Commit f28604f

Browse files
author
FalkWolsky
committed
Extending Event Handler Controllers and increase SDK version
1 parent 13c2a35 commit f28604f

File tree

5 files changed

+488
-3
lines changed

5 files changed

+488
-3
lines changed

client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -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; };

client/packages/lowcoder-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-sdk",
3-
"version": "2.4.0-beta-2",
3+
"version": "2.4.0-beta-3",
44
"type": "module",
55
"files": [
66
"src",

0 commit comments

Comments
 (0)