From 8464602b510ef7d36f01ce1370d1b5ed2d0fd72c Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Tue, 31 Jan 2023 16:10:13 +0100 Subject: [PATCH] feat(bottom-sheet-native): add on change --- .../bottom-sheet-native/src/BottomSheet.editorConfig.ts | 1 + .../bottom-sheet-native/src/BottomSheet.xml | 8 +++++++- .../bottom-sheet-native/typings/BottomSheetProps.d.ts | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.editorConfig.ts b/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.editorConfig.ts index 73253efb0..70319ce39 100644 --- a/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.editorConfig.ts +++ b/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.editorConfig.ts @@ -89,6 +89,7 @@ export const getProperties = (values: any, defaultProperties: Properties): Prope "nativeImplementation", "itemsBasic", "triggerAttribute", + "triggerAttributeChange", "modalRendering" ]); if (!values.showFullscreenContent) { diff --git a/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.xml b/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.xml index 033fc3c84..89a2f2e99 100644 --- a/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.xml +++ b/packages/pluggableWidgets/bottom-sheet-native/src/BottomSheet.xml @@ -15,7 +15,7 @@ Expanding - + Trigger attribute Defines if the modal bottom sheet is visible or not. Initially this value should be false. When set to true, the bottom sheet will be shown. When the bottom sheet is hidden, the trigger attribute value is set to false. @@ -86,6 +86,12 @@ + + + On change + Called on change of the 'Trigger attribute' + + diff --git a/packages/pluggableWidgets/bottom-sheet-native/typings/BottomSheetProps.d.ts b/packages/pluggableWidgets/bottom-sheet-native/typings/BottomSheetProps.d.ts index 4ed64e461..a30260bbf 100644 --- a/packages/pluggableWidgets/bottom-sheet-native/typings/BottomSheetProps.d.ts +++ b/packages/pluggableWidgets/bottom-sheet-native/typings/BottomSheetProps.d.ts @@ -61,4 +61,5 @@ export interface BottomSheetPreviewProps { fullscreenContent: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> }; onOpen: {} | null; onClose: {} | null; + triggerAttributeChange: {} | null; }