Clusterize.js icon indicating copy to clipboard operation
Clusterize.js copied to clipboard

get & set for the rows

Open ccloquet opened this issue 8 years ago • 0 comments

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;
    }

ccloquet avatar Jan 13 '17 10:01 ccloquet