0

Can we use JSLink for built-in application pages for specific type of Lists?

What possible ways we can add CSS and JS to specific out of box List application pages?

May can use JSlink?

1
  • You mean assign a JSLink file to a particular custom list? Jan 26, 2015 at 14:25

1 Answer 1

0

You can set the JSlink property using the server side object model.

Exemple:

 
using (SPSite site = new SPSite(SPContext.Current.Web.Url))
{
    SPWeb web = site.RootWeb;
    SPField taskPriorityField = web.Fields["Priority"];

    taskPriorityField.JSLink = "/_layouts/15/TestJslink/TestJsLink.js";
    taskPriorityField.Update(true);
} 

For CSS :

you have specific files in the solution that will be deployed in the virtual file /_Layout.

For more informations : Informations MSDN

Yours

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.