0

Currently I have only three views appear is there a way for all the view names to appear or more then three?

0

1 Answer 1

1

Using javascript:

function renderHeaderTemplateForDocuments(renderCtx, fRenderHeaderColumnNames){
    var viewData = eval(renderCtx.ListSchema.ViewSelectorPivotMenuOptions);
    ClientPivotControl.prototype.SurfacedPivotCount = 4;   
    return RenderHeaderTemplate(renderCtx, fRenderHeaderColumnNames); //render default Header template
}

SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
  Templates: {
    Header: renderHeaderTemplateForDocuments
  }
});

Reference link: How to display more than 3 views in document library?

1
  • I added web part (script editor) and added the code but it didn't work. Commented May 29, 2015 at 19:11

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