Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand

Posts Tagged ‘js link’

JS Link for Web Parts

Posted by Jean Paul on August 1, 2014

SharePoint 2013 has a new CSR (Client Side Rendering) support through the JS Link property for web parts.

What is JS Link?

JS Link is a property available for web parts.  We can specify a client side script file here.  The scrip will be executed once the page gets loaded; on the client side.

This feature enables us to quickly associate JavaScript & JQuery files rather than using the Content Editor web part.

How to set the JS file?

Open a list or library and choose Edit Page > Edit Web Part option.


Open the Miscellaneous tab and you will see the JS Link.


You can set your client side script file for this property.



We can use the pre-defined ~sitecollection for accessing the site collection path.



In this post we have explored the JS Link property and its usage.  I hope this will help you take advantage of the SharePoint 2013 features.

Posted in SharePoint, SharePoint 2013 | Tagged: , , | Leave a Comment »