on 10-27-2017 10:51 AM
Hi experts, now I'm developing an application with a sap.ui.table.Table in it. From the Demo I know I could set highlight to the rows with the aggregation rowSettingsTemplate in the table.
But this way is operating on the whole table. Is there anyway to operate on a specific sap.ui.table.Row to set highlight to it? Thank you so much!
There are many ways you can achieve it, depending on how you are getting your data.
You can use formatter functions if you are getting data from back end. In the formatter functions, you could specify the condition for the row you want highlighted.
You can use the addStyleClass, for the specific row :
<row>.addStyleClass(myClass);
Or, based on some event if you want to highlight the colour , you can add an event listener to the row and in the controller write the logic for it.
Hope this helps,
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.