var table = new SmartTableScroll({ // DOM element to render to el: document.querySelector('#some-table'), // Array of objects that will be used to build and update each row data: [ { row1Data }, { row2Data } ... ], // Function used to calculate the height of each row heightFn: function(rowData) { return rowData.hasPicture ? 20 : 10; }, // Used when first creating dom nodes for each row buildRow: f