椭圆中将出现多少个列表视图? [英] How many list views will appear in the ellipse ?

查看:70
本文介绍了椭圆中将出现多少个列表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上有40次浏览.所有视图都显示在当前视图"窗口中.下拉菜单以及列表设置.但是当我转到列表并单击椭圆"(3个点)时,全部 p>

In my site there are 40 views. All the views appear in the "Current View" dropdown and also in the list settings.  But when I go to the list and click on the Ellipse (3 dots) all the views are not appearing.How many list  views will appear in the ellipse ?All thye views or is there any limit is there.(example :in list view max 50 views will be available via dropdown)

推荐答案

默认情况下,只有3个列表视图可用,其后是椭圆.但是,您可以使用jQuery通过以下代码来更新列表视图显示的呈现.

By default only 3 list views will be available followed by ellipse. However you can use jQuery to update the rendering of the list view display using the below code. 

步骤: 
1.将脚本添加到.js文件,然后将其上传到Site Assets.

2.在母版页文件中引用此js文件,如下所示(在所有系统js文件之后):

Steps : 
1. Add your script to a .js file and upload it to Site Assets.

2. Refer this js file in the master page file as shown below(After all system js files) :

您可以通过将以下代码更新为所需的数量来更改标签的数量

You can change the number of tabs by updating the below code to the required number

ClientPivotControl.prototype.SurfacedPivotCount = 5;   

使用的完整脚本:

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


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

应用jQuery后

此致

Priyan


这篇关于椭圆中将出现多少个列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆