Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 55: | Line 55: | ||
* @property {string} logo | * @property {string} logo | ||
*/ | */ | ||
let table; | |||
/** @param {string} title */ | /** @param {string} title */ | ||
Line 127: | Line 129: | ||
// Set up table. | // Set up table. | ||
const | const tabulator = new Tabulator("#dct-tabulator", { | ||
layout: 'fitColumns', | layout: 'fitColumns', | ||
columns: [ | columns: [ | ||
Line 153: | Line 155: | ||
] | ] | ||
}); | }); | ||
tabulator.on('tableBuilt', () => { | |||
tabulator.setData(dcts); | |||
table = tabulator; | |||
}); | |||
tabulator.on('dataFiltered', (filters, rows) => { | |||
console.log(filters) | console.log(filters) | ||
//filters - array of filters currently applied | //filters - array of filters currently applied |
Revision as of 15:09, 8 June 2022
Development verstion of the DCT List.
Not ready for production!