@anglr/grid
Version:
Angular module displaying grid
45 lines • 2.35 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 header row container
*/
export class HeaderRowContainerTemplateDirective {
constructor() {
//######################### public properties #########################
/**
* Obtained template by this directive
*/
this.template = inject((TemplateRef));
/**
* Indication whether list of columns will be excluded, not included in this row
*/
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: HeaderRowContainerTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0", type: HeaderRowContainerTemplateDirective, isStandalone: true, selector: "[headerRowContainerTemplate]", inputs: { predicate: ["headerRowContainerTemplatePredicate", "predicate"], columns: ["headerRowContainerTemplate", "columns", rowColumnsAttribute], exclude: ["headerRowContainerTemplateExclude", "exclude"] }, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HeaderRowContainerTemplateDirective, decorators: [{
type: Directive,
args: [{
selector: '[headerRowContainerTemplate]',
}]
}], propDecorators: { predicate: [{
type: Input,
args: ['headerRowContainerTemplatePredicate']
}], columns: [{
type: Input,
args: [{ alias: 'headerRowContainerTemplate', transform: rowColumnsAttribute }]
}], exclude: [{
type: Input,
args: ['headerRowContainerTemplateExclude']
}] } });
//# sourceMappingURL=headerRowContainerTemplate.directive.js.map