OLD | NEW |
---|---|
(Empty) | |
1 <!-- | |
2 The common.js file must be included before this file. | |
3 | |
4 This in an HTML Import-able file that contains the definition | |
5 of the following elements: | |
6 | |
7 <fuzzer-summary-list-sk> | |
8 | |
9 This element will poll /json/fuzz-list for the fuzz contents to display, which will be an array of FileDetails. | |
jcgregorio
2015/11/06 19:15:02
It doesn't actually poll, instead is just does a s
| |
10 See fuzzer-collapse-file-sk.html for more information. | |
11 | |
12 To use this file import it: | |
13 | |
14 <link href="/res/imp/fuzzer-summary-list-sk.html" rel="import" /> | |
15 | |
16 Usage: | |
17 | |
18 <fuzzer-summary-list-sk></fuzzer-summary-list-sk> | |
19 | |
20 Properties: | |
21 None. | |
22 | |
23 Methods: | |
24 None. | |
25 | |
26 Events: | |
27 None. | |
28 --> | |
29 <dom-module id="fuzzer-summary-list-sk"> | |
30 <template> | |
31 <template is="dom-repeat" items="{{fileDetails}}" as="file"> | |
32 <fuzzer-collapse-file-sk file="{{file}}"></fuzzer-collapse-file-sk> | |
33 </template> | |
34 </template> | |
35 <script> | |
36 Polymer({ | |
37 is: 'fuzzer-summary-list-sk', | |
38 | |
39 properties: { | |
40 fileDetails: { | |
41 type: Array, | |
42 value: function() { | |
43 return []; | |
44 }, | |
45 readOnly: true, //generates _setFileDetails | |
46 }, | |
47 }, | |
48 | |
49 ready: function() { | |
50 sk.get("/json/fuzz-list").then(JSON.parse).then(function(json) { | |
jcgregorio
2015/11/06 19:15:02
sk.get("/json/fuzz-list").then(JSON.parse).then(th
| |
51 this._setFileDetails(json); | |
52 }.bind(this)); | |
53 } | |
54 }); | |
55 </script> | |
56 </dom-module> | |
OLD | NEW |