0

In my project I have to customize the custom list display form. I used jslink with the webpart properties:

enter image description here

I overwrite the rendering Body function and I would like to generate the default toolBarTbl as well:

enter image description here

My code:

function CustomizeFieldRendering() {
   var ctx = {};
   ctx.Templates = {};
   ctx.Templates.Body = newFormBodyTemplate;   
   SPClientTemplates.TemplateManager.RegisterTemplateOverrides(ctx);
}

function newFormViewTemplate(ctx) {
    var formTable = "".concat("<table class='rootTable' cellpadding='5'>",
        renderFieldRow(ctx, "Title"),
        ... other fields,
        "</table>",
        renderBottomTable(ctx));
    return formTable;
}

function renderBottomTable(ctx){
??
}

How must look the renderBottomTable function?

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.