Pagination related Bug: settings.total can be a function! No page button will be displayed in this case.

Related to the Sample #14 'Table with external control of data', when run alone it will not show the pagination section: totalItems is assigned with settings.total, which in this case is a function; this causes numPages to be NaN.

A quick fix is to check if totalItems is a function inside the generatePagesArray function and execute it.

Honestly I have no idea why it works in the sample preview and in the plunkr.