var otable = new sap.m.Table();//here table is created
//here multiple header I'm trying to create this can happen in sap.ui.table.Table but I want some thin in sap.m.Table
var oColumns = new sap.m.Column({
multiLabels: [
new sap.m.Label({//here is main header
text: "Input",
textAlign: "Center"
}),//here is sub header as input one
new Button({
text: "Input1"
})
]
});
//有没有在 sap.m.Table 中创建多级标题列的想法
最佳答案
sap.m.Column 不支持控件列表,但是您可以将布局控件添加为标题以在标题中包含多个控件:
var oTable = new sap.m.Table({
columns: [
new sap.m.Column({
header: new sap.m.VBox({
new sap.m.Label({
text: "Input",
textAlign: sap.ui.core.TextAlign.Center
}),
new Button({
text: "Input1"
})
})
})
]
});
关于javascript - sap.m.Table 中是否有多个标题,如 sap.ui.table.Table?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35986369/