@anglr/grid
Version:
Angular module displaying grid
48 lines • 2.84 kB
JavaScript
import { Input, TemplateRef, Directive, ContentChild, inject } from '@angular/core';
import { HeaderCellTemplateDirective } from '../headerCellTemplate/headerCellTemplate.directive';
import { FooterCellTemplateDirective } from '../footerCellTemplate/footerCellTemplate.directive';
import { ContentCellTemplateDirective } from '../contentCellTemplate/contentCellTemplate.directive';
import { DEFAULT_MATRIX_COLUMN_WIDTH } from '../../misc/tokens';
import * as i0 from "@angular/core";
/**
* Directive for gathering information about matrix grid column
*/
export class MatrixGridColumnDirective {
constructor() {
/**
* @inheritdoc
*/
this.visible = true;
/**
* @inheritdoc
*/
this.width = inject(DEFAULT_MATRIX_COLUMN_WIDTH);
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MatrixGridColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: MatrixGridColumnDirective, isStandalone: true, selector: "[matrixGridColumn]", inputs: { id: ["matrixGridColumn", "id"], title: "title", visible: "visible", width: "width" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: HeaderCellTemplateDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "bodyTemplate", first: true, predicate: ContentCellTemplateDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "footerTemplate", first: true, predicate: FooterCellTemplateDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MatrixGridColumnDirective, decorators: [{
type: Directive,
args: [{
selector: '[matrixGridColumn]',
}]
}], propDecorators: { id: [{
type: Input,
args: [{ required: true, alias: 'matrixGridColumn' }]
}], title: [{
type: Input
}], visible: [{
type: Input
}], width: [{
type: Input
}], headerTemplate: [{
type: ContentChild,
args: [HeaderCellTemplateDirective, { static: true, read: TemplateRef }]
}], bodyTemplate: [{
type: ContentChild,
args: [ContentCellTemplateDirective, { static: true, read: TemplateRef }]
}], footerTemplate: [{
type: ContentChild,
args: [FooterCellTemplateDirective, { static: true, read: TemplateRef }]
}] } });
//# sourceMappingURL=matrixGridColumn.directive.js.map