blob: 95e6452095b88fd673c405c82ae903821cd534ed [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright 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/power_sample_table.html">
<polymer-element name="tr-ui-a-multi-power-sample-sub-view"
extends="tr-ui-a-sub-view">
<template>
<style>
:host {
display: flex;
}
</style>
<tr-ui-a-power-sample-table id="table"></tr-ui-a-power-sample-table>
</template>
</polymer-element>
<script>
'use strict';
Polymer('tr-ui-a-multi-power-sample-sub-view', {
ready: function() {
this.currentSelection_ = undefined;
},
get selection() {
return this.currentSelection_;
},
set selection(selection) {
this.currentSelection_ = selection;
this.updateContents_();
},
updateContents_: function() {
this.$.table.samples = this.currentSelection_;
}
});
</script>