igniteui-angular-sovn
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
105 lines (89 loc) • 2.98 kB
text/typescript
import { Directive, TemplateRef } from '@angular/core';
import { IgxCellTemplateContext, IgxColumnTemplateContext, IgxSummaryTemplateContext } from '../common/grid.interface';
({
selector: '[igxFilterCellTemplate]',
standalone: true
})
export class IgxFilterCellTemplateDirective {
constructor(public template: TemplateRef<IgxColumnTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxFilterCellTemplateDirective,
context: unknown): context is IgxColumnTemplateContext {
return true;
}
}
({
selector: '[igxCell]',
standalone: true
})
export class IgxCellTemplateDirective {
constructor(public template: TemplateRef<IgxCellTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxCellTemplateDirective,
context: unknown): context is IgxCellTemplateContext {
return true;
}
}
({
selector: '[igxCellValidationError]',
standalone: true
})
export class IgxCellValidationErrorDirective {
constructor(public template: TemplateRef<IgxCellTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxCellValidationErrorDirective,
context: unknown): context is IgxCellTemplateContext {
return true;
}
}
({
selector: '[igxHeader]',
standalone: true
})
export class IgxCellHeaderTemplateDirective {
constructor(public template: TemplateRef<IgxColumnTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxCellHeaderTemplateDirective,
context: unknown): context is IgxColumnTemplateContext {
return true;
}
}
/**
* @hidden
*/
({
selector: '[igxFooter]',
standalone: true
})
export class IgxCellFooterTemplateDirective {
constructor(public template: TemplateRef<any>) { }
}
({
selector: '[igxCellEditor]',
standalone: true
})
export class IgxCellEditorTemplateDirective {
constructor(public template: TemplateRef<IgxCellTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxCellEditorTemplateDirective,
context: unknown): context is IgxCellTemplateContext {
return true;
}
}
({
selector: '[igxCollapsibleIndicator]',
standalone: true
})
export class IgxCollapsibleIndicatorTemplateDirective {
constructor(public template: TemplateRef<IgxColumnTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxCollapsibleIndicatorTemplateDirective,
context: unknown): context is IgxColumnTemplateContext {
return true;
}
}
({
selector: '[igxSummary]',
standalone: true
})
export class IgxSummaryTemplateDirective {
constructor(public template: TemplateRef<IgxSummaryTemplateContext>) { }
public static ngTemplateContextGuard(_directive: IgxSummaryTemplateDirective,
context: unknown): context is IgxSummaryTemplateContext {
return true;
}
}