blob: 46417601c4121955b8544b0729b66d650ca7e0ea [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright 2016 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<link rel="import" href="/tracing/ui/analysis/analysis_link.html">
<dom-module id="tr-v-ui-related-value-set-span">
<script>
'use strict';
Polymer({
is: 'tr-v-ui-related-value-set-span',
ready: function() {
this.diagnostic_ = undefined;
},
get diagnostic() {
return this.diagnostic_;
},
set diagnostic(d) {
this.diagnostic_ = d;
this.updateContents_();
},
updateContents_: function() {
Polymer.dom(this).textContent = '';
for (var value of this.diagnostic) {
var link = document.createElement('tr-ui-a-analysis-link');
link.setSelectionAndContent(value, value.name);
Polymer.dom(this).appendChild(link);
Polymer.dom(this).appendChild(document.createElement('br'));
}
}
});
</script>
</dom-module>