Samples/Branding.ClientSideRendering/Branding.ClientSideRenderingWeb/Scripts/JSLink-Samples/Accordion.js
// This function provides the rendering logic
This function provides the rendering logic
This function provides the rendering logic
function accordionTemplate(ctx) {
    var title = ctx.CurrentItem["Title"];
    var description = ctx.CurrentItem["Description"];
    return "<h2>" + title + "</h2><p>" + description + "</p><br/>";
}
function accordionTemplate ( ctx ) { var title = ctx . CurrentItem [ "Title" ] ; var description = ctx . CurrentItem [ "Description" ] ; return "<h2>" + title + "</h2><p>" + description + "</p><br/>" ; }
This function provides the rendering logic
This function provides the rendering logic
// Return whole item html