UNPKG

@blackbaud/skyux

Version:
49 lines 1.89 kB
import { Component, Input, ContentChildren, TemplateRef, ChangeDetectionStrategy } from '@angular/core'; var SkyGridColumnComponent = (function () { function SkyGridColumnComponent() { this.isSortable = true; /* tslint:disable */ this.searchFunction = this.search; } Object.defineProperty(SkyGridColumnComponent.prototype, "template", { get: function () { return (this.templates.length > 0 ? this.templates.first : undefined) || this.templateInput; }, enumerable: true, configurable: true }); SkyGridColumnComponent.prototype.search = function (value, searchText) { /* tslint:disable */ if (value !== undefined && value !== null) { return value.toString().toLowerCase().indexOf(searchText) !== -1; } /* tslint:enable */ return false; }; return SkyGridColumnComponent; }()); export { SkyGridColumnComponent }; SkyGridColumnComponent.decorators = [ { type: Component, args: [{ selector: 'sky-grid-column', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush },] }, ]; /** @nocollapse */ SkyGridColumnComponent.ctorParameters = function () { return []; }; SkyGridColumnComponent.propDecorators = { 'id': [{ type: Input },], 'heading': [{ type: Input },], 'width': [{ type: Input },], 'hidden': [{ type: Input },], 'locked': [{ type: Input },], 'field': [{ type: Input },], 'type': [{ type: Input },], 'description': [{ type: Input },], 'isSortable': [{ type: Input },], 'searchFunction': [{ type: Input, args: ['search',] },], 'templateInput': [{ type: Input, args: ['template',] },], 'templates': [{ type: ContentChildren, args: [TemplateRef,] },], }; //# sourceMappingURL=grid-column.component.js.map