SpreadJS Documentation
target Method
The hyperlink's target type.
Gets or sets the type for the hyperlink's target.
Syntax
var instance = new GcSpread.Sheets.HyperLinkCellType();
var returnValue; // Type: HyperLinkTargetType
returnValue = instance.target(value);
function target( 
   value : HyperLinkTargetType
) : HyperLinkTargetType;

Parameters

value
The hyperlink's target type.

Return Value

The hyperlink's target type.
Example
This example creates a hyperlink cell.
var cellType = new GcSpread.Sheets.HyperLinkCellType();
cellType.linkColor("blue");
cellType.visitedLinkColor("#FFFF00");
cellType.text("ComponentOne");
cellType.linkToolTip("Company Web Site");
cellType.target(GcSpread.Sheets.HyperLinkTargetType.Self);
activeSheet.getCell(0, 2).cellType(cellType).value("http://www.componentone.com/");
See Also

Reference

HyperLinkCellType class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.