Update docs
This commit is contained in:
18
README.md
18
README.md
@@ -143,7 +143,7 @@ Slot props:
|
|||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
### `goTo`
|
### `goTo`
|
||||||
Navigates to a page by index
|
Navigates to a page by index. `(options) => Promise<void>`.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
@@ -170,13 +170,13 @@ Arguments:
|
|||||||
```
|
```
|
||||||
|
|
||||||
### `goToPrev`
|
### `goToPrev`
|
||||||
Navigates to the previous page
|
Navigates to the previous page. `(options) => Promise<void>`.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
| Argument | Type | Default | Description |
|
| Argument | Type | Default | Description |
|
||||||
|--------------------|-------------|---------|---------------------------------------|
|
|--------------------|-------------|---------|-------------------------------|
|
||||||
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
@@ -196,13 +196,13 @@ Arguments:
|
|||||||
```
|
```
|
||||||
|
|
||||||
### `goToNext`
|
### `goToNext`
|
||||||
Navigates to the next page
|
Navigates to the next page. `(options) => Promise<void>`.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
| Argument | Type | Default | Description |
|
| Argument | Type | Default | Description |
|
||||||
|--------------------|-------------|---------|---------------------------------------|
|
|--------------------|-------------|---------|------------------------------|
|
||||||
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -375,14 +375,14 @@ Slot props:
|
|||||||
# Methods
|
# Methods
|
||||||
|
|
||||||
## `goTo`
|
## `goTo`
|
||||||
Navigates to a page by index
|
Navigates to a page by index. `(options) => Promise<void>`.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
| Argument | Type | Default | Description |
|
| Argument | Type | Default | Description |
|
||||||
|--------------------|-------------|---------|---------------------------------------|
|
|--------------------|-------------|---------|------------------------------|
|
||||||
| `pageIndex` | `number` | | Page number |
|
| `pageIndex` | `number` | | Page number |
|
||||||
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
@@ -402,13 +402,13 @@ Arguments:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## `goToPrev`
|
## `goToPrev`
|
||||||
Navigates to the previous page
|
Navigates to the previous page. `(options) => Promise<void>`.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
| Argument | Type | Default | Description |
|
| Argument | Type | Default | Description |
|
||||||
|--------------------|-------------|---------|---------------------------------------|
|
|--------------------|-------------|---------|------------------------------|
|
||||||
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
@@ -428,13 +428,13 @@ Arguments:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## `goToNext`
|
## `goToNext`
|
||||||
Navigates to the next page
|
Navigates to the next page. `(options) => Promise<void>`.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
| Argument | Type | Default | Description |
|
| Argument | Type | Default | Description |
|
||||||
|--------------------|-------------|---------|---------------------------------------|
|
|--------------------|-------------|---------|------------------------------|
|
||||||
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
| `options.animated` | `boolean` | `true` | Should it be animated or not |
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user