@anglr/grid
Version:
Angular module displaying grid
45 lines • 2.38 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 content (body) row container
*/
export class ContentRowContainerTemplateDirective {
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: ContentRowContainerTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0", type: ContentRowContainerTemplateDirective, isStandalone: true, selector: "[contentRowContainerTemplate]", inputs: { predicate: ["contentRowContainerTemplatePredicate", "predicate"], columns: ["contentRowContainerTemplate", "columns", rowColumnsAttribute], exclude: ["contentRowContainerTemplateExclude", "exclude"] }, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ContentRowContainerTemplateDirective, decorators: [{
type: Directive,
args: [{
selector: '[contentRowContainerTemplate]',
}]
}], propDecorators: { predicate: [{
type: Input,
args: ['contentRowContainerTemplatePredicate']
}], columns: [{
type: Input,
args: [{ alias: 'contentRowContainerTemplate', transform: rowColumnsAttribute }]
}], exclude: [{
type: Input,
args: ['contentRowContainerTemplateExclude']
}] } });
//# sourceMappingURL=contentRowContainerTemplate.directive.js.map