Quantcast
Channel: SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 789

To color the first row of a table in SAP UI5

$
0
0

Each row of the table can be given a separate color according to the requirement. The way it was implemented in our case is as shown below:

Creation of UI:

A table is created with the properties as shown below. fixedRowCount is the important property when you are showing the total of the following values in the table other than the fixed one.

img1.png

Changes in CSS:

Add the below css in either index.html file or by adding the particular css in the customized css file by assigning the same in the index.html as show below in the second image.

img2.png

 

img3.png

 

Result:

As a result of the above implantation, the first row is fixed which indicates the sum of the values in the following rows for each column

 

 

img4.png


Viewing all articles
Browse latest Browse all 789

Trending Articles