Skip to content

Commit 9986515

Browse files
feat(datagrid-web): add refreshIndicator prop to preview function and mockWidgetProps
1 parent 5b22dc2 commit 9986515

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/pluggableWidgets/datagrid-web/src/Datagrid.editorPreview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export function preview(props: DatagridPreviewProps): ReactElement {
145145
isFetchingNextBatch={false}
146146
loadingType="spinner"
147147
columnsLoading={false}
148+
refreshIndicator={props.refreshIndicator}
148149
/>
149150
);
150151
}

packages/pluggableWidgets/datagrid-web/src/utils/test-utils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export function mockWidgetProps(): WidgetProps<GridColumn, ObjectItem> {
109109
isFetchingNextBatch: false,
110110
loadingType: "spinner",
111111
columnsLoading: false,
112+
refreshIndicator: false,
112113
focusController: new FocusTargetController(
113114
new PositionController(),
114115
new VirtualGridLayout(1, columns.length, 10)

0 commit comments

Comments
 (0)