Footer pager

The Footer features a Pager. The pager method both sets and gets the Pager. If you omit the argument, you"ll get the current Pager (jQuery style). You can pass null to the method to destroy the Pager once you are done with it.

ts.ui.Footer.pager({
	pages: 23,
	page: 0,
	onselect: function(index) {
		console.log(index);
	}
});

If you need to update the index later on, for example to support history navigation, it is recommended that you change the page property of the existing Pager instead of initializing a whole new Pager. You can just call the same method without arguments.

ts.ui.Footer.pager().page = 23;

If you find a bug or need a feature…

  • Create GitHub Issue…