cancel
Showing results for 
Search instead for 
Did you mean: 

mobile replacement for sap.ui.table.Table?

Former Member
0 Kudos

Is there a mobile replacement for  sap.ui.table.Table?

If so, can you show me some code that samples it in javascript?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

koolspy_ultimate
Active Contributor
0 Kudos

Hi,

As Mentioned in above posts, did you try sap.m.Table API

reference code.

var aControls = [];

var tab = new sap.m.Table("TAB",{

   columns:[new sap.m.Column({header: new sap.m.Label({text:"ID"})}),

                                                  new sap.m.Column({header: new sap.m.Label({text:"Name"})}),

                                                  new sap.m.Column({header: new sap.m.Label({text:"City"})})],

      items  :[new sap.m.ColumnListItem({cells:[new sap.m.Label({text:"01"}),

                                                                    new sap.m.Label({text:"ABC"}),

                                                                    new sap.m.Label({text:"ABC"})]}),

                  new sap.m.ColumnListItem({cells:[new sap.m.Label({text:"01"}),

                                                                    new sap.m.Label({text:"ABC"}),

                                                                    new sap.m.Label({text:"ABC"})]}),

],

});

aControls.push(tab);

return aControls;

Regards,

Madhumahesh.

Answers (2)

Answers (2)

former_member91307
Contributor
0 Kudos

Sample in Javascript using sap.m.Table

Plunker

Qualiture
Active Contributor
0 Kudos

Hi Jordan,

The API Reference - sap.m.Table is the mobile counterpart of the desktop sap.ui.table.Table control

former_member182862
Active Contributor
0 Kudos

Yes sap.m.Table however you are going to see a lot of missing features and also it is slower to render the table.

-D

Former Member
0 Kudos

Do you know if the SORTING and FILTERING still work as the normal table works?