SP.Field.jsLink property (sp.js)
Gets or sets the name of an external JS file containing any client rendering logic for fields of this type.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
Note
The JSLink property is not supported on Survey or Events lists. A SharePoint calendar is an Events list.
var value = SP.Field.get_jsLink ()
var value = SP.Field.set_jsLink ()
Return value
Type: String
The name of the file.
REST resource endpoint
See Field resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/jsLink
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/jsLink
GET syntax
GET http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/jsLink