UNPKG

@progress/kendo-angular-gauges

Version:
40 lines (39 loc) 2.03 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, TemplateRef, Optional } from '@angular/core'; import * as i0 from "@angular/core"; /** * Represents a directive that allows customizing the center part of the `<kendo-arcgauge>` component. * Use this directive to create a center template * ([more information and example]({% slug centertemplate_arcgauge %})). * * The template context provides access to the current ArcGauge value through the `value` and `color` fields. * * @example * ```html * <kendo-arcgauge [value]="value"> * <ng-template kendoArcGaugeCenterTemplate let-value="value" let-color="color"> * {{ value }}% * </ng-template> * </kendo-arcgauge> * ``` */ export class ArcCenterTemplateDirective { templateRef; constructor(templateRef) { this.templateRef = templateRef; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcCenterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ArcCenterTemplateDirective, isStandalone: true, selector: "[kendoArcGaugeCenterTemplate]", ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcCenterTemplateDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoArcGaugeCenterTemplate]', standalone: true }] }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{ type: Optional }] }] });