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 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 table = new Tabulator("#dct-tabulator", {
         const tabulator = new Tabulator("#dct-tabulator", {
             layout: 'fitColumns',
             layout: 'fitColumns',
             columns: [
             columns: [
Line 153: Line 155:
             ]
             ]
         });
         });
         table.on('tableBuilt', () => { table.setData(dcts); });
         tabulator.on('tableBuilt', () => {  
            tabulator.setData(dcts);
            table = tabulator;
        });


         table.on('dataFiltered', (filters, rows) => {
         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!