From 27921a3bddf13ea49c9f0767227503b90258f7cb Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 30 Nov 2024 17:10:14 -0500 Subject: [PATCH] chore: fix failing Cypress test --- packages/demo/src/examples/slickgrid/example10.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/demo/src/examples/slickgrid/example10.ts b/packages/demo/src/examples/slickgrid/example10.ts index a28ac0516..1b1604552 100644 --- a/packages/demo/src/examples/slickgrid/example10.ts +++ b/packages/demo/src/examples/slickgrid/example10.ts @@ -237,6 +237,13 @@ export class Example10 { } } + // Toggle the Pagination of Grid2 + // IMPORTANT, the Pagination MUST BE CREATED on initial page load before you can start toggling it + // Basically you cannot toggle a Pagination that doesn't exist (must created at the time as the grid) + isGrid2WithPaginationChanged() { + this.aureliaGrid2.paginationService!.togglePaginationVisibility(this.isGrid2WithPagination); + } + onGrid1SelectedRowsChanged(_e: Event, args: any) { const grid = args && args.grid; if (Array.isArray(args.rows)) {