2021-08-10 15:56:53 +02:00
|
|
|
import { freeCSV2HTML } from "./freeCSV2HTML";
|
|
|
|
|
|
|
|
const initialise = async () =>
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
let converter=new freeCSV2HTML();
|
|
|
|
converter.datasViewElt={ id:"datas" };
|
2021-08-11 15:24:00 +02:00
|
|
|
converter.datasSelectors=[{ colCSV:3, id:"filtre1"},{ colCSV:4, id:"filtre2"}];
|
2021-08-10 15:56:53 +02:00
|
|
|
converter.datasSourceUrl="http://localhost:8080/datas/elements-chimiques.csv";
|
|
|
|
await converter.run();
|
|
|
|
}
|
|
|
|
catch(e)
|
|
|
|
{
|
|
|
|
console.error(e);
|
|
|
|
}
|
|
|
|
}
|
2021-08-11 15:24:00 +02:00
|
|
|
initialise();
|