@visactor/vrender-components
Version:
components library for dp visualization
24 lines (23 loc) • 806 B
TypeScript
import type { ISymbol, IText } from '@visactor/vrender-core';
import { AbstractComponent } from '../core/base';
import type { PagerAttributes } from './type';
import type { ComponentOptions } from '../interface';
export declare class Pager extends AbstractComponent<Required<PagerAttributes>> {
name: string;
private _current;
getCurrent(): number;
private _total;
preHandler: ISymbol | null;
nextHandler: ISymbol | null;
text: IText | null;
static defaultAttributes: Partial<PagerAttributes>;
constructor(attributes: PagerAttributes, options?: ComponentOptions);
protected render(): void;
private _bindEvents;
private _onHover;
private _onUnHover;
private _onClick;
private _reset;
private _getPageText;
setTotal(total: number): void;
}