cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Labels in sap.m.Table

akshaya_p
Contributor
0 Kudos

I want to have multiple labels in header of sap.m.Table.

How can it be achieved?

Accepted Solutions (0)

Answers (2)

Answers (2)

jessicademarchi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Did you found a way to do that using sap.m.Table?

RaviKant_Ranjan
Participant
0 Kudos

Hi Akshaya,

Hope this may help you:

The sap.m.Column does not support a list of Controls, however you can add a layout Control as header to include multiple Controls in the header:

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"
                })
            })
        })
    ]
});
akshaya_p
Contributor

Hi

I want a common header under which i need multiple subheaders. Also the same should come when exporting to excel sheet