Widget: DevGuidelines: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 82: Line 82:
             console.log(guidelines);
             console.log(guidelines);


             const table = new Tabulator("#guideline-tabulator", {
             const table = new Tabulator('#guideline-tabulator', {
                 data: guidelines,
                 data: guidelines,
                 layout:"fitDataFill",
                 layout: 'fitDataTable',
                 responsiveLayout: 'collapse',
                 responsiveLayout: 'collapse',
                 columns: [
                 columns: [
Line 93: Line 93:
                     { title: 'Target audience', field: TA_PROP },
                     { title: 'Target audience', field: TA_PROP },
                     { title: 'Audience experience level', field: EX_PROP },
                     { title: 'Audience experience level', field: EX_PROP },
                ],
                initialSort: [
                    { column: 'title', dir: 'asc' },
                    { column: YEAR_PROP, dir: 'desc' }
                 ]
                 ]
             });
             });
   
               
             table.on("tableBuilt", () => {
             table.on('tableBuilt', () => {
                 table.redraw(true);
                 table.redraw(true);
                 console.log('done')
                 console.log('done')

Revision as of 14:29, 1 September 2022

Development version of the List of Guidelines.
Not ready for production!