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)


Public Overridable Property JSLink As String
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).


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.

See also


SPField class

SPField members

Microsoft.SharePoint namespace