Skip to content

Commit

Permalink
feat(bottom-sheet-native): add on change
Browse files Browse the repository at this point in the history
  • Loading branch information
Andries-Smit committed Jan 31, 2023
1 parent e19655a commit 132cf17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export function getProperties(values: any, defaultProperties: Properties): Prope
"nativeImplementation",
"itemsBasic",
"triggerAttribute",
"triggerAttributeChange",
"modalRendering"
]);
if (!values.showFullscreenContent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<enumerationValue key="expanding">Expanding</enumerationValue>
</enumerationValues>
</property>
<property key="triggerAttribute" type="attribute" required="false">
<property key="triggerAttribute" type="attribute" onChange="triggerAttributeChange" required="false">
<caption>Trigger attribute</caption>
<description>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.</description>
<attributeTypes>
Expand Down Expand Up @@ -86,6 +86,12 @@
<description />
</property>
</propertyGroup>
<propertyGroup caption="Events">
<property key="triggerAttributeChange" type="action" required="false">
<caption>On change</caption>
<description>Called on change of the 'Trigger attribute'</description>
</property>
</propertyGroup>
<propertyGroup caption="Common">
<systemProperty key="Name"/>
<systemProperty key="Visibility" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ export interface BottomSheetPreviewProps {
fullscreenContent: { widgetCount: number; renderer: ComponentType<{ caption?: string }> };
onOpen: {} | null;
onClose: {} | null;
triggerAttributeChange: {} | null;
}

0 comments on commit 132cf17

Please sign in to comment.