Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui-presets / dist / presets / Pagination / typings.d.ts
Size: Mime:
import { ReactNode } from 'react';
/** FUNCTION */
export interface PaginationRenderProp {
    (props: PaginationProps, state: PaginationState): ReactNode;
}
export interface PaginationProps {
    className?: '';
    pageCountInformation?: '';
    /**
     * @todo @name list SAME
     * @todo needs to be inherited this typings from SelectDropDown
     */
    pageNumberList?: Array<Object>;
    children?: ReactNode;
    paginationLimit: number;
    defaultIndex: number;
    /**
     * renderProps
     */
    renderWrapper?: PaginationRenderProp;
    renderDropDown?: PaginationRenderProp;
    renderPaginationWithArrows?: PaginationRenderProp;
    renderLeftButton?: PaginationRenderProp;
    renderPaginationInput?: PaginationRenderProp;
    renderRightButton?: PaginationRenderProp;
    onDecrement?: PaginationRenderProp;
    onIncrement?: PaginationRenderProp;
    state?: PaginationState;
    onDropdownChange?: Function;
    onPaginationInputChange?: Function;
    onPaginationInputBlur?: Function;
}
export interface PaginationState {
    count: number;
    shouldDisableLeftIcon: boolean;
    shouldDisableRightIcon: boolean;
    decrementCount(): void;
    incrementCount(limit: number): void;
    setCount(value: number): void;
    disableIcon(direction?: string): void;
    enableIcon(direction?: string): void;
}