blob: efc77c87d4344460737e86fb313f39574fa26754 [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2015 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="/ui/analysis/analysis_sub_view.html">
<link rel="import" href="/ui/analysis/single_event_sub_view.html">
<polymer-element name="tr-ui-a-single-interaction-record-sub-view"
extends="tr-ui-a-sub-view">
<script>
'use strict';
Polymer({
created: function() {
this.currentSelection_ = undefined;
},
get selection() {
return this.currentSelection_;
},
set selection(selection) {
this.textContent = '';
var realView = document.createElement('tr-ui-a-single-event-sub-view');
this.appendChild(realView);
realView.setSelectionWithoutErrorChecks(selection);
this.currentSelection_ = selection;
},
get relatedEventsToHighlight() {
if (!this.currentSelection_)
return undefined;
return this.currentSelection_[0].associatedEvents;
}
});
</script>
</polymer-element>