UNPKG

@progress/kendo-angular-gauges

Version:
61 lines (60 loc) 2.19 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { QueryList } from '@angular/core'; import { CollectionComponent, CollectionItemComponent } from '../base-components'; import { CollectionChangesService, ConfigurationService } from '../services'; import * as i0 from "@angular/core"; /** * Represents a collection of one or more ArcGauge colors * ([more information and example]({% slug colorranges_arcgauge %})). * * @example * ```ts * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-app', * template: ` * <kendo-arcgauge [value]="value"> * <kendo-arcgauge-colors> * @for (item of colors; track item) { * <kendo-arcgauge-color * [from]="item.from" [to]="item.to" [color]="item.color"> * </kendo-arcgauge-color> * } * </kendo-arcgauge-colors> * </kendo-arcgauge> * ` * }) * export class AppComponent { * public value: number = 10; * * public colors: any[] = [{ * to: 25, * color: '#0058e9' * }, { * from: 25, * to: 50, * color: '#37b400' * }, { * from: 50, * to: 75, * color: '#ffc000' * }, { * from: 75, * color: '#f31700' * }]; * } * ``` * * @remarks * Supported children components are: {@link ColorComponent}. */ export declare class ColorsComponent extends CollectionComponent { children: QueryList<CollectionItemComponent>; constructor(configurationService: ConfigurationService, collectionChangesService: CollectionChangesService); static ɵfac: i0.ɵɵFactoryDeclaration<ColorsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ColorsComponent, "kendo-arcgauge-colors", never, {}, {}, ["children"], never, true, never>; }