ng2-smart-table-pager-mod
Version:
Angular Smart Table Mod
49 lines • 3.12 kB
JavaScript
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { Grid } from '../../../lib/grid';
import { DataSource } from '../../../lib/data-source/data-source';
var TheadFitlersRowComponent = (function () {
function TheadFitlersRowComponent() {
this.create = new EventEmitter();
this.filter = new EventEmitter();
}
TheadFitlersRowComponent.prototype.ngOnChanges = function () {
this.isMultiSelectVisible = this.grid.isMultiSelectVisible();
this.showActionColumnLeft = this.grid.showActionColumn('left');
this.showActionColumnRight = this.grid.showActionColumn('right');
this.filterInputClass = this.grid.getSetting('filter.inputClass');
};
return TheadFitlersRowComponent;
}());
__decorate([
Input(),
__metadata("design:type", Grid)
], TheadFitlersRowComponent.prototype, "grid", void 0);
__decorate([
Input(),
__metadata("design:type", DataSource)
], TheadFitlersRowComponent.prototype, "source", void 0);
__decorate([
Output(),
__metadata("design:type", Object)
], TheadFitlersRowComponent.prototype, "create", void 0);
__decorate([
Output(),
__metadata("design:type", Object)
], TheadFitlersRowComponent.prototype, "filter", void 0);
TheadFitlersRowComponent = __decorate([
Component({
selector: '[ng2-st-thead-filters-row]',
template: "\n <th *ngIf=\"isMultiSelectVisible\"></th>\n <th ng2-st-add-button *ngIf=\"showActionColumnLeft\"\n [grid]=\"grid\"\n (create)=\"create.emit($event)\">\n </th>\n <th *ngFor=\"let column of grid.getColumns()\" class=\"ng2-smart-th {{ column.id }}\">\n <ng2-smart-table-filter [source]=\"source\"\n [column]=\"column\"\n [inputClass]=\"filterInputClass\"\n (filter)=\"filter.emit($event)\">\n </ng2-smart-table-filter>\n </th>\n <th ng2-st-add-button *ngIf=\"showActionColumnRight\"\n [grid]=\"grid\"\n [source]=\"source\"\n (create)=\"create.emit($event)\">\n </th>\n ",
})
], TheadFitlersRowComponent);
export { TheadFitlersRowComponent };
//# sourceMappingURL=thead-filters-row.component.js.map