我是SAP UI5的新手。我创建了一个有2列的表,并应用了排序和过滤属性都工作正常。但现在我想要一些建议列表应该出现,而用户在过滤器框中输入。请帮助下面是我的代码。
var oTable = new sap.ui.table.Table({
editable : false,
width : "auto",
visibleRowCount : 6
});
oTable.addColumn(new sap.ui.table.Column({
label : new sap.ui.commons.Label({
text : "Product Name"
}),
template : new sap.ui.commons.TextField().bindProperty("value",
"PNAME"),
enabled : false,
editable : false,
sortProperty : "PNAME",
filterProperty : "PNAME",
display : "none",
width : "auto"
}));
oTable.addColumn(new sap.ui.table.Column({
label : new sap.ui.commons.Label({
text : "Region Name"
}),
template : new sap.ui.commons.TextField().bindProperty("value",
"RNAME"),
enabled : false,
editable : false,
sortProperty : "RNAME",
filterProperty : "RNAME",
display : "none",
width : "auto"
}));
答案 0 :(得分:0)
TextField自1.38起不推荐使用。而是使用sap.m.Input控件。 输入控件具有建议功能。