2

We all know how to define one template function for one field.

SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
  Templates: {
    Fields: {
           "[fieldname]": {
               View: myCustomFunction,
           }
       },
  });

Can I use one template function for every field displayed in the View?
I do not know the internal fieldnames upfront and I prefer not to loop over the ctx object

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.