mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props
This commit is contained in:
parent
d38e6d8be6
commit
75d4b4cf03
219 changed files with 5168 additions and 5259 deletions
77
types/PaginationNav/PaginationNav.d.ts
vendored
77
types/PaginationNav/PaginationNav.d.ts
vendored
|
@ -1,44 +1,45 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface PaginationNavProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["nav"]> {
|
||||
/**
|
||||
* Specify the current page index
|
||||
* @default 0
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
/**
|
||||
* Specify the total number of pages
|
||||
* @default 10
|
||||
*/
|
||||
total?: number;
|
||||
|
||||
/**
|
||||
* Specify the total number of pages to show
|
||||
* @default 10
|
||||
*/
|
||||
shown?: number;
|
||||
|
||||
/**
|
||||
* Set to `true` to loop the navigation
|
||||
* @default false
|
||||
*/
|
||||
loop?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the forward button text
|
||||
* @default "Next page"
|
||||
*/
|
||||
forwardText?: string;
|
||||
|
||||
/**
|
||||
* Specify the backward button text
|
||||
* @default "Previous page"
|
||||
*/
|
||||
backwardText?: string;
|
||||
}
|
||||
|
||||
export default class PaginationNav {
|
||||
$$prop_def: svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["nav"]> & {
|
||||
/**
|
||||
* Specify the current page index
|
||||
* @default 0
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
/**
|
||||
* Specify the total number of pages
|
||||
* @default 10
|
||||
*/
|
||||
total?: number;
|
||||
|
||||
/**
|
||||
* Specify the total number of pages to show
|
||||
* @default 10
|
||||
*/
|
||||
shown?: number;
|
||||
|
||||
/**
|
||||
* Set to `true` to loop the navigation
|
||||
* @default false
|
||||
*/
|
||||
loop?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the forward button text
|
||||
* @default "Next page"
|
||||
*/
|
||||
forwardText?: string;
|
||||
|
||||
/**
|
||||
* Specify the backward button text
|
||||
* @default "Previous page"
|
||||
*/
|
||||
backwardText?: string;
|
||||
};
|
||||
|
||||
$$prop_def: PaginationNavProps;
|
||||
$$slot_def: {};
|
||||
|
||||
$on(eventname: "click:button--previous", cb: (event: CustomEvent<any>) => void): () => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue