- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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"); } } } }) ]
- Related Articles
- How to Auto-Number a Column Based on the Cell Values on Another Column in Excel?
- How to Apply Conditional Formatting based on VLOOKUP in Excel?
- Update a table based on StudentId value in MySQL?
- Break the line based on word with CSS
- How to AutoFilter Rows Based on Cell Values in Excel?
- How to Auto-Strikethrough Based on Cell Value in Excel?
- How to border cells based on cell values in Excel?
- How to change value based on cell color in Excel?
- Select total from a MySQL table based on month
- How to Apply Conditional Formatting to a Column Based on Another Column in Excel?
- How to Auto-Insert Rows Based on Cell Values in Excel?
- How to Automatically Send Email Based on Cell Value in Excel?
- How to Apply Shadow Effect on Text Using CSS?
- Rotate the element based on an angle using CSS
- How to apply EXTRACT() function on the dates stored in MySQL table?

Advertisements