Skip to content

Commit 56a4b98

Browse files
feat(gallery-web): add refresh indicator property to gallery
1 parent 7aca887 commit 56a4b98

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/pluggableWidgets/gallery-web/src/Gallery.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@
9494
<translation lang="en_US">Load More</translation>
9595
</translations>
9696
</property>
97+
<property key="refreshIndicator" type="boolean" defaultValue="false">
98+
<caption>Show refresh indicator</caption>
99+
<description>Show a refresh indicator when the data is being loaded.</description>
100+
</property>
97101
</propertyGroup>
98102
<propertyGroup caption="Items">
99103
<property key="showEmptyPlaceholder" type="enumeration" defaultValue="none">

packages/pluggableWidgets/gallery-web/typings/GalleryProps.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface GalleryContainerProps {
3939
showPagingButtons: ShowPagingButtonsEnum;
4040
pagingPosition: PagingPositionEnum;
4141
loadMoreButtonCaption?: DynamicValue<string>;
42+
refreshIndicator: boolean;
4243
showEmptyPlaceholder: ShowEmptyPlaceholderEnum;
4344
emptyPlaceholder?: ReactNode;
4445
itemClass?: ListExpressionValue<string>;
@@ -80,6 +81,7 @@ export interface GalleryPreviewProps {
8081
showPagingButtons: ShowPagingButtonsEnum;
8182
pagingPosition: PagingPositionEnum;
8283
loadMoreButtonCaption: string;
84+
refreshIndicator: boolean;
8385
showEmptyPlaceholder: ShowEmptyPlaceholderEnum;
8486
emptyPlaceholder: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
8587
itemClass: string;

0 commit comments

Comments
 (0)