diff --git a/typescript/base/pager/pager.ts b/typescript/base/pager/pager.ts new file mode 100644 index 000000000..655f00092 --- /dev/null +++ b/typescript/base/pager/pager.ts @@ -0,0 +1,21 @@ +import { Widget } from "../../core/widget"; + +export declare class Pager extends Widget { + static xtype: string; + + static EVENT_CHANGE: string; + + static EVENT_AFTER_POPULATE: string; + + getCurrentPage(): number; + + setValue(v: number): void; + + hasPrev(): boolean; + + hasNext(): boolean; + + setAllPages(v: number): void; + + populate(): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 34afc93a2..fbfed1af7 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -163,6 +163,7 @@ import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem'; import { Broadcasts, Layers } from "./base/base"; import { BroadcastController } from "./core/controller/controller.broadcast"; +import { Pager } from "./base/pager/pager"; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -301,6 +302,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { DateInterval: typeof DateInterval; DynamicDatePane: typeof DynamicDatePane; AllCountPager: typeof AllCountPager; + Pager: typeof Pager; PopupView: typeof PopupView; BubblePopupView: typeof BubblePopupView; BubblePopupBarView: typeof BubblePopupBarView; @@ -470,6 +472,7 @@ export { DateInterval, DynamicDatePane, AllCountPager, + Pager, PopupView, BubblePopupView, BubblePopupBarView,