sap.m.Table 中是否有多个标头,例如 sap.ui.table.Table

is there multiple header in sap.m.Table like sap.ui.table.Table?

本文关键字:sap Table ui table 例如 是否      更新时间:2023-09-26
    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"
                })
            })
        })
    ]
});