SimpleDataTable

Example 1: Minimal


const d = new SimpleDataTable(document.querySelector('#example-1'));
d.load(...);
d.render();
    

Example 2: Change label of add button


const d = new SimpleDataTable(document.querySelector('#example-2'), {
    addButtonLabel: 'Add'
});
d.load(...);
d.render();
    

Example 3: Change prefix of default column (use DevTools to watch)


const d = new SimpleDataTable(document.querySelector('#example-3'), {
    addButtonLabel: 'Add'
});
d.render();
    

Example 4: Change default number of columns


const d = new SimpleDataTable(document.querySelector('#example-4'), {
    defaultColumnNumber: 1
});
d.render();