UNPKG

ng-jhipster

Version:

A Jhipster util library for Angular 2

23 lines (22 loc) 992 B
import { Component, Input } from '@angular/core'; /** * A component that will take care of item count statistics of a pagination. */ export var JhiItemCountComponent = (function () { function JhiItemCountComponent() { } JhiItemCountComponent.decorators = [ { type: Component, args: [{ selector: 'jhi-item-count', template: "\n <div class=\"info jhi-item-count\">\n Showing {{((page - 1) * itemsPerPage) == 0 ? 1 : ((page - 1) * itemsPerPage + 1)}} -\n {{(page * itemsPerPage) < total ? (page * itemsPerPage) : total}}\n of {{total}} items.\n </div>" },] }, ]; /** @nocollapse */ JhiItemCountComponent.ctorParameters = function () { return []; }; JhiItemCountComponent.propDecorators = { 'page': [{ type: Input },], 'total': [{ type: Input },], 'itemsPerPage': [{ type: Input },], }; return JhiItemCountComponent; }());