SpreadJS Documentation
PictureSelectionChanged Event
GC.Spread.Sheets Namespace > Events type : PictureSelectionChanged Event
The sheet that triggered the event.
The sheet's name.
The picture that triggered the event.
Occurs when the selections of the picture have changed.
Syntax
var instance; // Type: Events
instance.PictureSelectionChanged = function(sheet, sheetName, picture) { };
PictureSelectionChanged = function ( 
   sheet : Worksheet,
   sheetName : string,
   picture : Picture
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
picture
The picture that triggered the event.
Example
This example uses the PictureSelectionChanged event.
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
var activeSheet = spread.getActiveSheet(); 

activeSheet.pictures.add("f2","Event.png",2,2,6,6);
activeSheet.pictures.add("f1","tsoutline.png",3,0,6,6);

// Use IE to see the console log text
activeSheet.bind(GC.Spread.Sheets.Events.PictureSelectionChanged, function (e, info) {  
console.log("Sheet: " + info.sheetName);
});
See Also

Reference

Events type