-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get pagination and sort parameters? #72
Comments
I will think about that, maybe provide the on page changing or on sorting hook, because component is hard to open static public api. You can see my answer for #70 |
后续的接口如何设计? |
Like I said, I will provide a hook (callback) for after page changing or sorting and pass these data as params, so you can get it. Currently, I've no idea for provide a public method on some class. any idea? |
我已经实现了如上接口的功能,分页和排序变化时传入一个回调如何? |
@luqin, good design. but |
@AllenFang yes |
This should be better options:{ page: 0, //默认显示页数 sizePerPageList: [5,10,30,50,100], //分页选择数量 sizePerPage: 10, //每页分页大小数量 paginationSize: 10, //显示分页数按钮个数 fetchInfo: { dataTotalSize:30, //总共数据大小 //...... }, onPageChange:handlePageChange, //分页变更事件 onSortChange:handleSortChange //排序事件 } |
@luqin I'll implement this function (get pagination and sort parameters) in these day |
我已经实现了分页和排序,remote 数据 写了个demo |
分页和排序这样如何?
|
OK |
Is this some way to add a totalPages feature? All I need this plugin to do that it doesn't do already is set the total number of available pages to what I get back from my server. For example, if there are 50 pages of available data, then I set
|
There's no way to do, but maybe you can try this |
由于这个库不支持服务端分页,所以我需要获取分页和排序参数,用于自己构造服务端分页dataSource。
请问能提供这个支持吗?由于目前不能升级react0.14,因此使用的版本:
希望能提供接口支持,谢谢。
The text was updated successfully, but these errors were encountered: