September 2013
Beginner to intermediate
480 pages
9h 59m
English
One of the most common tasks we encounter when creating websites is displaying lists and tables. Most techniques focus on server-side sorting, paging, and the rendering of data. Our solution will be completely on the client side, suitable for small to medium amounts of data. The main benefit of a client-side solution is speed; sorting and switching pages will be nearly instantaneous.
In this recipe, we're going to create a client-side, sortable paginated table.
We assume that a service provides the data in a JSON object, containing a data property that is an array of arrays:
{data:[["object1col1", "object1col2"], ["object2col1", "object2col2"], …]}In our example, we're going to display a list of people ...
Read now
Unlock full access