@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
50 lines (49 loc) • 2.26 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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";
/**
* A directive that selects a [template](link:site.data.urls.angular['templatesyntax'])
* within the `<kendo-circulargauge>` component which will be used for the center template
* ([more information and example]({% slug centertemplate_circulargauge %})).
*
* @example
* ```ts
* import { Component } from '@angular/core';
*
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-circulargauge [value]="value">
* <ng-template kendoCircularGaugeCenterTemplate let-value="value">
* {{ value }}%
* </ng-template>
* </kendo-circulargauge>
*
* `
* })
* export class AppComponent {
* public value: number = 10;
* }
*
* ```
*/
export class CircularGaugeCenterTemplateDirective {
templateRef;
constructor(templateRef) {
this.templateRef = templateRef;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularGaugeCenterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CircularGaugeCenterTemplateDirective, isStandalone: true, selector: "[kendoCircularGaugeCenterTemplate]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularGaugeCenterTemplateDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoCircularGaugeCenterTemplate]',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
type: Optional
}] }]; } });