Bootstrap-table: pageList 设置后不起作用

Created on 13 Feb 2017  ·  10Comments  ·  Source: wenzhixin/bootstrap-table

设置如下:
pageSize: 10,
pageList: [10, 25, 50, 100],
页面加载完成后,点击选择页面的条数按钮没用
image

pageList中的数据也没加载过来

Most helpful comment

@ShawSX ,table 有个 smartDisplay 默认为 true,它会自动将大于总条数的列隐藏掉,你要手动设置为 false 才行。例如:
http://jsfiddle.net/wenyi/e3nk137y/11657/
http://jsfiddle.net/wenyi/e3nk137y/11658/

All 10 comments

Can you translate this issue to english, please?

bootstrap-table seting list below
pageSize: 10,
pageList: [10, 25, 50, 100],
When the table is loaded ,click the pageList button it does not work, the pageList was not loaded by the table

@ShawSX ,table 有个 smartDisplay 默认为 true,它会自动将大于总条数的列隐藏掉,你要手动设置为 false 才行。例如:
http://jsfiddle.net/wenyi/e3nk137y/11657/
http://jsfiddle.net/wenyi/e3nk137y/11658/

解决了,样式冲突导致的。

遇到同样的问题,pageList不能下拉选择,设置smartDisplay: false也没有效果,版本1.14.2,使用adminLTE 2.4.18 自带的bootstrap.min.css, bootstrap.min.js

@Shaun-Yao 没有引入 bootstrap 依赖的 popup 包吧?

@wenzhixin 谢谢,引入dropdown.js就解决了

@Shaun-Yao 请问是如何引入dropdown.js的。项目中已经引入了bootstrap.js

@chenxumeng bootstrap 4 依赖 popper.js,你可以看下文档: https://bootstrap-table.com/docs/getting-started/introduction/#starter-template

解决了,样式冲突导致的。

能说下怎么解决的吗,遇到 了同样的问题

Was this page helpful?
0 / 5 - 0 ratings