Skip to content

Commit 5daf738

Browse files
feat(gallery-web): add refresh interval property
1 parent 9614c62 commit 5daf738

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
@@ -16,6 +16,10 @@
1616
<caption>Data source</caption>
1717
<description />
1818
</property>
19+
<property key="refreshInterval" type="integer" defaultValue="0">
20+
<caption>Refresh time (in seconds)</caption>
21+
<description />
22+
</property>
1923
<property key="itemSelection" type="selection" dataSource="datasource">
2024
<caption>Selection</caption>
2125
<description />

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface GalleryContainerProps {
2929
tabIndex?: number;
3030
filtersPlaceholder?: ReactNode;
3131
datasource: ListValue;
32+
refreshInterval: number;
3233
itemSelection?: SelectionSingleValue | SelectionMultiValue;
3334
itemSelectionMode: ItemSelectionModeEnum;
3435
keepSelection: boolean;
@@ -76,6 +77,7 @@ export interface GalleryPreviewProps {
7677
translate: (text: string) => string;
7778
filtersPlaceholder: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
7879
datasource: {} | { caption: string } | { type: string } | null;
80+
refreshInterval: number | null;
7981
itemSelection: "None" | "Single" | "Multi";
8082
itemSelectionMode: ItemSelectionModeEnum;
8183
keepSelection: boolean;

0 commit comments

Comments
 (0)