How to use KnockoutJS for adding client side paging to table?

后端 未结 3 1412
渐次进展
渐次进展 2021-02-01 09:12

How can I add paging with KnockoutJS?

My current code is:

//assuming jsondata is a collection of data correctly passed into this function

myns.DisplayFi         


        
3条回答
  •  走了就别回头了
    2021-02-01 09:57

    Maybe https://github.com/addyosmani/backbone.paginator is something for you? From the Github page:

    Backbone.Paginator is a set of opinionated components for paginating collections of data using Backbone.js. It aims to provide both solutions for assisting with pagination of requests to a server (e.g an API) as well as pagination of single-loads of data, where we may wish to further paginate a collection of N results into M pages within a view.

提交回复
热议问题