diff --git a/typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts b/typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts new file mode 100644 index 000000000..883df68f3 --- /dev/null +++ b/typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts @@ -0,0 +1,16 @@ +import { Widget } from "../../../core/widget"; + +export declare class TextValueCheckCombo extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + + setTitle (v: string): void; + + setValue (v: string | number): void; + + setWarningTitle(v: string): void; + + getValue(): void; + + populate(items: any[]): string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 07cb902fa..6f2bb94b2 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -126,6 +126,8 @@ import { AllCountPager } from "./case/pager/pager.all.count"; import { PopupView } from "./base/layer/layer.popup"; import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble"; import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode"; +import { NumberEditor } from "./widget/numbereditor/numbereditor"; +import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck"; type ClassConstructor = T & { @@ -402,4 +404,6 @@ export { BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, + TextValueCheckCombo, + NumberEditor }; diff --git a/typescript/widget/numbereditor/numbereditor.ts b/typescript/widget/numbereditor/numbereditor.ts new file mode 100644 index 000000000..5484af1d2 --- /dev/null +++ b/typescript/widget/numbereditor/numbereditor.ts @@ -0,0 +1,23 @@ +import { Widget } from "../../core/widget"; + +export declare class NumberEditor extends Widget { + static xtype: string; + static EVENT_CONFIRM: string; + static EVENT_CHANGE: string; + + focus (): void; + + isEditing(): void; + + setUpEnable(v: boolean): void; + + setDownEnable(v: boolean): void; + + getLastValidValue(): string; + + getLastChangedValue(): string; + + getValue(): string; + + setValue(v: string): void; +}