diff --git a/typescript/base/single/button/buttons/button.image.ts b/typescript/base/single/button/buttons/button.image.ts new file mode 100644 index 0000000000..997153a111 --- /dev/null +++ b/typescript/base/single/button/buttons/button.image.ts @@ -0,0 +1,24 @@ +import { BasicButton } from "../button.basic"; + +export declare class ImageButton extends BasicButton { + static xtype: string; + static EVENT_CHANGE: string; + + setWidth(w: number): void; + + setHeight(h: number): void; + + setImageWidth(w: number): void; + + setImageHeight(h: number): void; + + getImageWidth(): number; + + getImageHeight(): number; + + setSrc(src: string): void; + + getSrc(): string; + + doClick(): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 009f99f018..b35966288a 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -151,6 +151,7 @@ import { DateCalendarPopup } from "./widget/date/calendar/popup.calendar.date"; import { Tree, Node } from "./core/utils/tree"; import { TextNode } from "./base/single/button/node/textnode"; import { TextValueCheckComboPopup } from "./case/combo/textvaluecheckcombo/popup.textvaluecheck"; +import { ImageButton } from './base/single/button/buttons/button.image'; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -307,6 +308,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { DateCalendarPopup: typeof DateCalendarPopup; TextNode: typeof TextNode; TextValueCheckComboPopup: typeof TextValueCheckComboPopup; + ImageButton: typeof ImageButton; } export default { @@ -465,4 +467,5 @@ export { Node, TextNode, TextValueCheckComboPopup, + ImageButton, };