SpreadJS Documentation
SheetArea Enumeration
Specifies the sheet area.
Members
MemberDescription
colHeaderIndicates the column header.
cornerIndicates the sheet corner.
rowHeaderIndicates the row header.
viewportIndicates the viewport.
Example
Creates log text describing which area in the sheet was clicked.
// Use IE to see the console log text

activeSheet.bind(GcSpread.Sheets.Events.CellClick, function (sender, args) {
    if(args.sheetArea === GcSpread.Sheets.SheetArea.colHeader){
        console.log("The column header was clicked.");
    }

    if(args.sheetArea === GcSpread.Sheets.SheetArea.rowHeader){
        console.log("The row header was clicked.");
    }

    if(args.sheetArea === GcSpread.Sheets.SheetArea.corner){
        console.log("The corner header was clicked.");
    }

    console.log("Clicked column index: " + args.col);
    console.log("Clicked row index: " + args.row);
});

activeSheet.bind(GcSpread.Sheets.Events.CellDoubleClick, function (sender, args) {
    if(args.sheetArea === GcSpread.Sheets.SheetArea.colHeader){
        console.log("The column header was double clicked.");
    }

    if(args.sheetArea === GcSpread.Sheets.SheetArea.rowHeader){
        console.log("The row header was double clicked.");
    }

    if(args.sheetArea === GcSpread.Sheets.SheetArea.corner){
        console.log("The corner header was double clicked.");
    }

    console.log("Double clicked column index: " + args.col);
    console.log("Double clicked row index: " + args.row);
});
Inheritance Hierarchy

Object
   GcSpread.Sheets.SheetArea

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.