-
Notifications
You must be signed in to change notification settings - Fork 0
File loader documentation
Yoann Dufresne edited this page Jul 31, 2019
·
2 revisions
The header javascript create a tsv file list that can be load.
When the select DOM object called "experiment" is modified, the corresponding tsv file is downloaded and parsed. The result is send by an event called data_loaded raised from the experiment selector. The event object have an attribute called data. This attribute is an array if array where the first level correspond to each line in the tsv file and the second each column.
Here is an example to listen for data change :
var exp = document.getElementById("experiment");
exp.addEventListener("data_loaded", function(event) {
for (let row of event.data) {
console.log(row);
}
});