gpt4 book ai didi

javascript - sap.m.Table 中是否有多个标题,如 sap.ui.table.Table?

转载 作者:行者123 更新时间:2023-11-30 16:12:44 29 4
gpt4 key购买 nike

    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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com