Clusterize.js
Clusterize.js copied to clipboard
get & set for the rows
Thank you for this awesome plugin !
For a project, I had to be able to modify the rows (to add/remove a class when the row is selected). I therefore added two functions :
self.getrows = function() {
return rows;
}
self.setrow = function(r, idx) {
rows[idx] = r;
}
self.setrows = function(r) {
rows = r;
}