mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
refactor: update/fix JSDoc props
This commit is contained in:
parent
3c04f122b0
commit
d38e6d8be6
204 changed files with 992 additions and 2359 deletions
|
@ -1,38 +1,20 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the current page index
|
||||
* @type {number} [page=0]
|
||||
*/
|
||||
/** Specify the current page index */
|
||||
export let page = 0;
|
||||
|
||||
/**
|
||||
* Specify the total number of pages
|
||||
* @type {number} [total=10]
|
||||
*/
|
||||
/** Specify the total number of pages */
|
||||
export let total = 10;
|
||||
|
||||
/**
|
||||
* Specify the total number of pages to show
|
||||
* @type {number} [shown=10]
|
||||
*/
|
||||
/** Specify the total number of pages to show */
|
||||
export let shown = 10;
|
||||
|
||||
/**
|
||||
* Set to `true` to loop the navigation
|
||||
* @type {boolean} [loop=false]
|
||||
*/
|
||||
/** Set to `true` to loop the navigation */
|
||||
export let loop = false;
|
||||
|
||||
/**
|
||||
* Specify the forward button text
|
||||
* @type {string} [forwardText="Next page"]
|
||||
*/
|
||||
/** Specify the forward button text */
|
||||
export let forwardText = "Next page";
|
||||
|
||||
/**
|
||||
* Specify the backward button text
|
||||
* @type {string} [backwardText="Next page"]
|
||||
*/
|
||||
/** Specify the backward button text */
|
||||
export let backwardText = "Previous page";
|
||||
|
||||
import { afterUpdate, createEventDispatcher } from "svelte";
|
||||
|
@ -43,12 +25,6 @@
|
|||
import { Button } from "../Button";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
/**
|
||||
* Minimum number of items to be shown
|
||||
* @constant
|
||||
* @type {4}
|
||||
*/
|
||||
const MIN = 4;
|
||||
|
||||
afterUpdate(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue