+1 vote
1.2k views
in Coach Views by

1 Answer

0 votes
by (30.6k points)

Row highlighting by a data element is the table's On row rendered event (UI Toolkit); the handler receives the row element and the record (question 763 has the full example). Short form:

// Table > Events > On row rendered  (row, record, index)
row.classList.toggle("danger",  record.riskLevel === "HIGH");     // Bootstrap 3 contextual row classes
row.classList.toggle("warning", record.riskLevel === "MEDIUM");
row.classList.toggle("success", record.riskLevel === "LOW");

Column / cell level: the column's Render cell option (cell.style.background = ...); the heritage Dojo table: none - upgrade to the UI Toolkit table. For the highlight to follow data changes, refresh the table (${Table}.refresh()) after changing the field from code.

References

Related questions

0 votes
1 answer 2.3k views
0 votes
1 answer 1.4k views
0 votes
1 answer 4.1k views
+1 vote
1 answer 2.5k views
0 votes
1 answer 1.2k views
0 votes
1 answer 849 views
0 votes
1 answer 1.1k views
0 votes
1 answer 874 views
0 votes
4 answers 4.5k views
0 votes
1 answer 2.5k views
0 votes
1 answer 1.7k views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...