UNPKG

comindware.core.ui

Version:

Comindware Core UI provides the basic components like editors, lists, dropdowns, popups that we so desperately need while creating Marionette-based single-page applications.

9 lines (8 loc) 234 B
export default Backbone.Model.extend({ pagesTotal() { if (!isFinite(this.get('recordsPerPage'))) { return 1; } return Math.ceil(this.get('recordsTotal') / this.get('recordsPerPage')); } });