diff --git a/typescript/component/treevaluechooser/pane.treevaluechooser.ts b/typescript/component/treevaluechooser/pane.treevaluechooser.ts new file mode 100644 index 0000000000..f7bc398f61 --- /dev/null +++ b/typescript/component/treevaluechooser/pane.treevaluechooser.ts @@ -0,0 +1,17 @@ +import { TreeValue } from '../../base/tree/ztree/treeview'; +import { AbstractTreeValueChooser } from "./abstract.treevaluechooser"; + +export declare class TreeValueChooserPane extends AbstractTreeValueChooser { + static xtype: string; + static EVENT_CHANGE: string; + + setSelectedValue(v: TreeValue): void; + + setValue(v: TreeValue): void; + + getValue(): TreeValue; + + getAllValue(): TreeValue; + + populate(items?: T[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 018d2fafff..cb559f76aa 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -170,6 +170,7 @@ import { DynamicDateTimePane } from './widget/datetimepane/datetimepane'; import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert'; import { MultiSelectTree } from './widget/multiselecttree/multiselecttree'; import { HtmlLabel } from "./base/single/label/html.label"; +import { TreeValueChooserPane } from './component/treevaluechooser/pane.treevaluechooser'; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -347,6 +348,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { SingleSelectInsertList: typeof SingleSelectInsertList; MultiSelectTree: typeof MultiSelectTree; HtmlLabel: typeof HtmlLabel; + TreeValueChooserPane: typeof TreeValueChooserPane; } export default { @@ -524,4 +526,5 @@ export { SingleSelectInsertList, MultiSelectTree, HtmlLabel, + TreeValueChooserPane, };