1. Edit the page where you added your listview webpart (any documents or list webpart).We will use the Out-of-box Document libraray “Documents” for this example.
2. Edit the Documents webpart’s properties select “Edit Web Part” as shown in picture below.
See more Tutorials on JS Link –