Skip to content

Instantly share code, notes, and snippets.

@vgrem
Created October 6, 2015 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrem/406392b55fde15d82fba to your computer and use it in GitHub Desktop.
Save vgrem/406392b55fde15d82fba to your computer and use it in GitHub Desktop.
function _registerAccordionViewTemplate() {
var accordionViewContext = {};
accordionViewContext.ListTemplateType: 100; //Generic List
accordionViewContext.Templates = {};
accordionViewContext.Templates.View = RenderAccordionViewBodyTemplate;
accordionViewContext.OnPreRender = OnAccordionViewPreRender;
accordionViewContext.OnPostRender = OnAccordionViewPostRender;
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(accordionViewContext);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment