所以我已经创建了一个组合框,当我尝试使用addOption
函数插入时,它似乎在某种程度上起作用。它在组合框中显示了它应该存在的位置,但它是一个空白区域。当我点击它时,它显示未定义。知道我做错了什么吗?
var infoCellList = [
{type: "settings", position: "label-left", labelWidth: 90, inputWidth: 130},
{type: "combo", name: "truckSelect", label: "Truck", value: ""}
];
var myFormInformation = vehicles_layout.cells('a').attachForm(infoCellList);
var truckSelectCombo = myFormInformation.getCombo("truckSelect");
truckSelectCombo.addOption("This is a test");