UNPKG

@progress/kendo-angular-gauges

Version:
39 lines (38 loc) 2.06 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-circulargauge>` component * ([more information and example]({% slug centertemplate_circulargauge %})). * * The template context provides access to the current CircularGauge value through the `value` and `color` fields. * * @example * ```html * <kendo-circulargauge [value]="value"> * <ng-template kendoCircularGaugeCenterTemplate let-value="value" let-color="color"> * { value }}% * </ng-template> * </kendo-circulargauge> * ``` */ export class CircularGaugeCenterTemplateDirective { templateRef; constructor(templateRef) { this.templateRef = templateRef; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CircularGaugeCenterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: CircularGaugeCenterTemplateDirective, isStandalone: true, selector: "[kendoCircularGaugeCenterTemplate]", ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CircularGaugeCenterTemplateDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoCircularGaugeCenterTemplate]', standalone: true }] }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{ type: Optional }] }] });