Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Apply CSS on a table cell based on the content in SAPUI5
You are having one of the most common requirements in the case of the table. You can achieve the end result using formatter function exposed on the cells of a table.
Here is a code snippet for your reference which you can alter as per your use case:
cells: [
new sap.m.Text({
text: {
formatter: function(name) {
if (name == "<your value>") {
// you can add style class or do your own logic here
this.addStyleClass("Total");
}
}
}
})
] Advertisements
