Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 60: Line 60:


         const logoData = await getImages(dctList.map(dct => dct.logo).filter(logo => !!logo));
         const logoData = await getImages(dctList.map(dct => dct.logo).filter(logo => !!logo));
        console.log('images', logoData);
        // table.on("tableBuilt", () => {
        // });
         return dctList;
         return dctList;
     }
     }


     const table = new Tabulator("#dct-tabulator", {
      
        autoColumns: true,
    });
 
     Promise.all([getSources(), getDcts()]).then(data => {
     Promise.all([getSources(), getDcts()]).then(data => {
         const sources = data[0];
         const sources = data[0];
         const dcts = data[1];
         const dcts = data[1];
         console.log('OUTPUT', data);
 
         const table = new Tabulator("#dct-tabulator", {
            autoColumns: true,
        });
        // console.log('OUTPUT', data);
         table.on("tableBuilt", () => {
         table.on("tableBuilt", () => {
             table.setData(dcts);
             table.setData(dcts);

Revision as of 13:18, 7 June 2022

Development verstion of the DCT List.
Not ready for production!