SpreadJS Documentation
getTag Method
The row index.
The column index.
The sheet area. If this parameter is not provided, it defaults to viewport.
Gets the tag value from the specified cell in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Object
value = instance.getTag(row, col, sheetArea);
function getTag( 
   row : number,
   col : number,
   sheetArea : SheetArea
) : Object;

Parameters

row
The row index.
col
The column index.
sheetArea
The sheet area. If this parameter is not provided, it defaults to viewport.

Return Value

Returns the tag value of the cell.
Example
This example adds and gets a cell tag.
activeSheet.getRow(1).tag("row tag");
alert(activeSheet.getTag(1,-1,GcSpread.Sheets.SheetArea.viewport));
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.