Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: tracing/tracing/ui/base/table.html

Issue 2341623002: Display Histograms in value-set-table-cells. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/ui/base/table.html
diff --git a/tracing/tracing/ui/base/table.html b/tracing/tracing/ui/base/table.html
index 6b39490a53390dc46416a858170a03286b397fea..3b444a6c2952f5397cfbf0973b03ffe0a8cb0c5c 100644
--- a/tracing/tracing/ui/base/table.html
+++ b/tracing/tracing/ui/base/table.html
@@ -171,6 +171,10 @@ tr.exportTo('tr.ui.b', function() {
border-top: 1px solid #ffffff;
}
+ :host([zebra]) table tbody tr:nth-child(even) {
+ background-color: #f4f4f4;
+ }
+
expand-button {
-webkit-user-select: none;
display: inline-block;
@@ -265,6 +269,18 @@ tr.exportTo('tr.ui.b', function() {
this.userCanModifySortOrder_ = true;
},
+ set zebra(zebra) {
+ if (zebra) {
+ this.setAttribute('zebra', true);
+ } else {
+ this.removeAttribute('zebra');
+ }
+ },
+
+ get zebra() {
+ return this.getAttribute('zebra');
+ },
+
get showHeader() {
return this.showHeader_;
},
« no previous file with comments | « tracing/tracing/ui/base/column_chart_test.html ('k') | tracing/tracing/ui/side_panel/metrics_side_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698