diff --git a/src/components/grid-container/container.ts b/src/components/grid-container/container.ts index 06a9dd4..f498838 100644 --- a/src/components/grid-container/container.ts +++ b/src/components/grid-container/container.ts @@ -388,6 +388,17 @@ export class GaiaContainer extends StarBaseElement { this.resetView(type, this.pagination, callback) } + turnTo(pagination: number) { + if (pagination < 0) { + pagination = 0 + } else if (pagination >= this.pages.length) { + pagination = this.pages.length - 1 + } + + const page = this.pages[pagination] + this.smoothSlide(page, 'panend') + } + resetView( type: string, pagination = this.pagination,