cancel
Showing results for 
Search instead for 
Did you mean: 

How to make cells in sap.m.table square?

former_member595374
Participant
0 Kudos

I'm currently implementing an sap.m.table to look like this image:

I've managed to add lines between the columns but I do not know how to get rid of the column header and make the cells square.

Here's the jsbin to what I currently have: https://output.jsbin.com/buculin.

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you use alternative controls to make it look like the image above? Or do you have to use sap.m.Table?

former_member595374
Participant
0 Kudos

I have to use sap.m.Table. Is it possible to do?

Accepted Solutions (1)

Accepted Solutions (1)

UxKjaer
Product and Topic Expert
Product and Topic Expert

Hi Betty,

Please find https://jsbin.com/nozupawuti/edit?html,css,js,output You can juggle the widths of the columns and then hide the columnheader via CSS.

Answers (1)

Answers (1)

You can force them to be square via CSS properties on them. Adding a new class containing square dimensions which overwrites SAP's default style should do the job. https://help.sap.com/doc/saphelp_uiaddon20/2.05/en-US/72/3f4b2334e344c08269159797f6f796/content.htm?... gives more detail on using custom CSS in a UI5 project.

Regards,

Erick.