clusterize() {
return new Clusterize({
rows: this.DomArray,
scrollId: this.scrollId,
contentId: this.contentId,
rows_in_block: this.rows_in_block,
blocks_in_cluster: this.blocks_in_cluster,
show_no_data_row: this.show_no_data_row,
no_data_text: this.no_data_text,
no_data_class: this.no_data_class,
keep_parity: this.keep_parity,
tag: this.tag,
callbacks: (Clusterize.prototype.callbacks = {
//
clusterWillChange: function() {
console.log("----->------>");
},
//
clusterChanged: function() {
console.log("----->-------->");
},
//
scrollingProgress: function(progress) {
console.log(progress);
}
})
});
-
you want to add a callback to the function in callbacks. You can pass the function directly when the parent component calls it, and let the child component execute it.
what can be done