SpreadJS Documentation
PictureChanged Event
The sheet that triggered the event.
The sheet's name.
The picture that triggered the event.
The name of the picture's property that has changed.
Occurs when any picture has changed.
Syntax
var instance; // Type: Events
instance.PictureChanged = function(sheet, sheetName, picture, propertyName) { };
PictureChanged = function ( 
   sheet : Sheet,
   sheetName : string,
   picture : Picture,
   propertyName : string
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
picture
The picture that triggered the event.
propertyName
The name of the picture's property that has changed.
Example
This example uses the PictureChanged event.
activeSheet.addPicture("f2","Event.png",2,2,6,6);
activeSheet.addPicture("f1","tsoutline.png",3,0,6,6);

// Use IE to see the console log text
$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.PictureChanged, function (e, info) {    
console.log("Sheet: " + info.sheetName);
});
activeSheet.addPicture("f2","Event.png",2,2,6,6);
activeSheet.addPicture("f1","tsoutline.png",3,0,6,6);

// Use IE to see the console log text
$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.PictureChanged, function (e, info) {    
console.log("Property: " + info.propertyName);
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.