UNPKG

@anglr/grid

Version:
21 lines 1.08 kB
import { Pipe } from '@angular/core'; import * as i0 from "@angular/core"; /** * Creates css value for 'grid-template-columns' property */ export class CssGridTemplateColumnsPipe { /** * Creates css value for 'grid-template-columns' property * @param value - Array of columns that will be rendered */ transform(value) { return value.map(col => col.width).join(' '); } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: CssGridTemplateColumnsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); } static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: CssGridTemplateColumnsPipe, isStandalone: true, name: "cssGridTemplateColumns" }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: CssGridTemplateColumnsPipe, decorators: [{ type: Pipe, args: [{ name: 'cssGridTemplateColumns' }] }] }); //# sourceMappingURL=cssGridTemplateColumns.pipe.js.map