SPField.JSLink property
When implemented in a derived class, gets or sets the name of an external JavaScript file (or set of files separated by the "|" character) that contains any client rendering logic for fields of the derived type.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Property JSLink As String
Get
Set
'Usage
Dim instance As SPField
Dim value As String
value = instance.JSLink
instance.JSLink = value
public virtual string JSLink { get; set; }
Property value
Type: System.String
The name(s) of the file(s). The default is a null reference (Nothing in Visual Basic).
Remarks
For example, in many of the built-in classes that derive from this one, JSLink defaults to "clienttemplates.js".
The JSLink property is not supported on Survey or Events lists. A SharePoint calendar is an Events list.