Widget: DCTList: Difference between revisions
From LINKS Community Center
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)); | ||
return dctList; | return dctList; | ||
} | } | ||
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!