Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bottom-sheet-native): add on change #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const 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 @@ -60,4 +60,5 @@ export interface BottomSheetPreviewProps {
fullscreenContent: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
onOpen: {} | null;
onClose: {} | null;
triggerAttributeChange: {} | null;
}
Loading