Skip to content
Merged
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 @@ -43,6 +43,7 @@ describe(

propPane.EnterJSContext("Table data", JSON.stringify(testData));

propPane.TogglePropertyState("Server side pagination", "On");
propPane.TogglePropertyState("Infinite scroll", "On");
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe(

it("1. should enable infinite scroll and verify records are loaded automatically when scrolling", () => {
// Enable infinite scroll in the property pane
propPane.TogglePropertyState("Server side pagination", "On");
propPane.TogglePropertyState("Infinite scroll", "On");

// Wait for network call to complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ export default [
updateCellEditabilityOnInfiniteScrollChange,
updateSearchSortFilterOnInfiniteScrollChange,
]),
dependencies: ["primaryColumns"],
hidden: () => !Widget.getFeatureFlag(INFINITE_SCROLL_ENABLED),
dependencies: ["primaryColumns", "serverSidePaginationEnabled"],
hidden: (props: TableWidgetProps) =>
!Widget.getFeatureFlag(INFINITE_SCROLL_ENABLED) ||
!props.serverSidePaginationEnabled,
},
{
helpText: createMessage(TABLE_WIDGET_TOTAL_RECORD_TOOLTIP),
Expand Down
Loading