Posted 4 October 2017, 2:52 pm EST
SpreadJS 10.2.2
The FloatingObjectLoaded event fires once for each region created by the freezing of rows and columns. The following will print “FloatingObjectLoaded” to the console four times:
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
spread.bind("FloatingObjectLoaded", function() {
console.log("FloatingObjectLoaded");
});
var sheet = spread.getSheet(0);
sheet.frozenColumnCount(1);
sheet.frozenRowCount(1);
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f0");
sheet.floatingObjects.add(customFloatingObject);