diff --git a/src/widget/multilayerselecttree/multilayerselecttree.combo.js b/src/widget/multilayerselecttree/multilayerselecttree.combo.js index e72d710093..823378647b 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.combo.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.combo.js @@ -199,11 +199,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { }, _getSyncConfig: function () { - var o = this.options; + var o = this.options, self = this; var baseConfig = this._getBaseConfig(); return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : { el: { type: "bi.single_tree_trigger", + ref: function(_ref) { + self.textTrigger = _ref; + }, text: o.text, height: o.height, items: o.items, @@ -226,6 +229,10 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { return this.combo.getValue(); }, + getSearcher: function () { + return this.trigger ? this.trigger.getSearcher() : this.textTrigger; + }, + populate: function (items) { this.combo.populate(items); } diff --git a/typescript/component/treevaluechooser/combo.listtreevaluechooser.ts b/typescript/component/treevaluechooser/combo.listtreevaluechooser.ts index 7b4b98b086..3f6aedcd89 100644 --- a/typescript/component/treevaluechooser/combo.listtreevaluechooser.ts +++ b/typescript/component/treevaluechooser/combo.listtreevaluechooser.ts @@ -1,4 +1,5 @@ -import { Trigger } from "typescript/base/single/trigger/trigger"; + +import { Trigger } from "../../base/single/trigger/trigger"; import { AbstractListTreeValueChooser } from "./abstract.treevaluechooser.list"; export declare class ListTreeValueChooserInsertCombo extends AbstractListTreeValueChooser { diff --git a/typescript/component/treevaluechooser/combo.treevaluechooser.insert.ts b/typescript/component/treevaluechooser/combo.treevaluechooser.insert.ts index e95e4baebd..d555153ead 100644 --- a/typescript/component/treevaluechooser/combo.treevaluechooser.insert.ts +++ b/typescript/component/treevaluechooser/combo.treevaluechooser.insert.ts @@ -1,4 +1,4 @@ -import { Trigger } from "typescript/base/single/trigger/trigger"; +import { Trigger } from "../../base/single/trigger/trigger"; import { AbstractTreeValueChooser } from "./abstract.treevaluechooser"; export declare class TreeValueChooserInsertCombo extends AbstractTreeValueChooser { diff --git a/typescript/component/treevaluechooser/combo.treevaluechooser.ts b/typescript/component/treevaluechooser/combo.treevaluechooser.ts index 565063b581..b9566ac419 100644 --- a/typescript/component/treevaluechooser/combo.treevaluechooser.ts +++ b/typescript/component/treevaluechooser/combo.treevaluechooser.ts @@ -1,4 +1,4 @@ -import { Trigger } from "typescript/base/single/trigger/trigger"; +import { Trigger } from "../../base/single/trigger/trigger"; import { AbstractTreeValueChooser } from "./abstract.treevaluechooser"; export declare class TreeValueChooserCombo extends AbstractTreeValueChooser { diff --git a/typescript/widget/multilayerselecttree/multilayerselecttree.combo.ts b/typescript/widget/multilayerselecttree/multilayerselecttree.combo.ts index 3dded7a471..e841957293 100644 --- a/typescript/widget/multilayerselecttree/multilayerselecttree.combo.ts +++ b/typescript/widget/multilayerselecttree/multilayerselecttree.combo.ts @@ -1,3 +1,4 @@ +import { Trigger } from "../../base/single/trigger/trigger"; import { Widget } from "../../core/widget"; export declare class MultiLayerSelectTreeCombo extends Widget { @@ -13,4 +14,6 @@ export declare class MultiLayerSelectTreeCombo extends Widget { getValue(): string[]; populate(items: T[]): void; + + getSearcher(): Trigger; }