@anglr/grid
Version:
Angular module displaying grid
42 lines • 2.11 kB
JavaScript
import { Directive, Input, TemplateRef, inject } from '@angular/core';
import { rowColumnsAttribute } from '../../misc/utils';
import * as i0 from "@angular/core";
/**
* Directive used for obtaining template for grid content renderer container
*/
export class GridContainerTemplateDirective {
constructor() {
//######################### public properties #########################
/**
* Obtained template by this directive
*/
this.template = inject((TemplateRef));
/**
* Indication whether list of columns will be excluded, not included in this grid container
*/
this.exclude = false;
}
//######################### ng language server #########################
/**
* Allows typechecking for template
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
static ngTemplateContextGuard(_dir, _ctx) {
return true;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GridContainerTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0", type: GridContainerTemplateDirective, isStandalone: true, selector: "[gridContainerTemplate]", inputs: { columns: ["gridContainerTemplate", "columns", rowColumnsAttribute], exclude: ["gridContainerTemplateExclude", "exclude"] }, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GridContainerTemplateDirective, decorators: [{
type: Directive,
args: [{
selector: '[gridContainerTemplate]',
}]
}], propDecorators: { columns: [{
type: Input,
args: [{ alias: 'gridContainerTemplate', transform: rowColumnsAttribute }]
}], exclude: [{
type: Input,
args: ['gridContainerTemplateExclude']
}] } });
//# sourceMappingURL=gridContainerTemplate.directive.js.map