var instance; // Type: Events instance.ButtonClicked = function(sheet, sheetName, row, col, sheetArea) { };
パラメータ
- sheet
- イベントを発生させたシート。
- sheetName
- シートの名前。
- row
- セルの行インデックス。
- col
- セルの列インデックス。
- sheetArea
- セルを含むシート領域。
var instance; // Type: Events instance.ButtonClicked = function(sheet, sheetName, row, col, sheetArea) { };
var cellType = new GC.Spread.Sheets.CellTypes.Button(); cellType.buttonBackColor("#FFFF00"); cellType.text("this is a button"); activeSheet.setCellType(1,1,cellType); spread.bind(GC.Spread.Sheets.Events.ButtonClicked, function (e, args) { var sheet = args.sheet, row = args.row, col = args.col; var cellType = activeSheet.getCellType(row, col); if (cellType instanceof GC.Spread.Sheets.CellTypes.Button) { alert("Button Clicked"); } });
var cellType = new GC.Spread.Sheets.CellTypes.Button(); cellType.buttonBackColor("#FFFF00"); cellType.text("this is a button"); activeSheet.setCellType(1,1,cellType); spread.bind(GC.Spread.Sheets.Events.ButtonClicked, function (e, args) { var sheet = args.sheet, row = args.row, col = args.col; var cellType = activeSheet.getCellType(row, col); if (cellType instanceof GC.Spread.Sheets.CellTypes.Button) { alert("Button Clicked"); } });