请参阅我的link
我已设置并实例化选择总线无法填充选项。 另外我不确定如何在画布中定位小部件。
var response1 = [{
"test": "Mk7ABC Card",
"use": "lit"
}, {
"test": "Mk7CBC Card",
"use": "lit"
}, {
"test": "Mk10BC Card",
"use": "lit"
}, {
"test": "Mk7CBC Card",
"use": "dim"
}]
var memoStore1 = new Memory({
data: response1
});
declare("buildSelect", [_WidgetBase], {
buildRendering: function () {
this.domNode = domConstruct.create("select", {})
}
});
new buildSelect({
id: "selectTest",
store: memoStore1,
searchAttr: "test"
}).placeAt(dom.byId('mfg_codeSelect'));
提前致谢 克莱门特
答案 0 :(得分:0)
有几件事突然袭来我:
您正在重写buildRendering()并且不允许父类的buildRendering()运行。你可能想做这样的事情:
buildRendering: function () {
this.domNode = domConstruct.create("select", {})
this.inherited(arguments);
}