From f2cf47b8d409f01558613a80d8a9649dd0974054 Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 29 Jun 2021 11:19:35 +0300 Subject: [PATCH] Update readme --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 2d2b5f5..787c877 100644 --- a/README.md +++ b/README.md @@ -137,4 +137,34 @@ Slot props: +``` + +## Methods + +### `goTo` +Navigates to a page by index + +Arguments: + +| Prop | Type | Default | Description | +|--------------------|-------------|---------|---------------------------------------| +| `pageIndex` | `number` | | Page number | +| `options.animated` | `boolean` | `true` | Should be animated or not | + +```jsx + + + + + + ``` \ No newline at end of file