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

Parameters

row
The row index.
col
The column index.
tag
The tag value to set for the specified cell.
sheetArea
The sheet area. If this parameter is not provided, it defaults to viewport.
Example
This example adds and gets a cell tag.
activeSheet.setTag(1,1,"test");
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.