blob: 51a23ef18d3463141f0b473524a7459d253cb42a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../tf-imports/plottable.html">
<link rel="import" href="../tf-imports/lodash.html">
<!--
tf-data-coordinator is a simple plumbing component that takes in a value url generator
(a function that takes a tag and a run and returns a url), and produces an upward-bindable
TF.DataCoordinator for consumption elsewhere.
-->
<dom-module id="tf-data-coordinator">
<script src="dataCoordinator.js"></script>
<script src="dataset.js"></script>
<script>
Polymer({
is: "tf-data-coordinator",
properties: {
urlGenerator: Object,
outDataCoordinator: {
type: Object,
computed: "getCoordinator(urlGenerator, runToTag)",
notify: true,
},
},
getCoordinator: function(generator, runToTag) {
return new TF.DataCoordinator(generator, runToTag);
}
});
</script>
</dom-module>
|