UNPKG

@progress/kendo-angular-gauges

Version:
60 lines (59 loc) 2.42 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 LinearGauge scale ranges * ([more information and example]({% slug scaleranghes_lineargauge %})). * * You can use this component to define multiple ranges on your LinearGauge scale. Each range displays a colored segment * that highlights specific value intervals on the LinearGauge. * * @example * ```ts * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-app', * template: ` * <kendo-lineargauge> * <kendo-lineargauge-scale> * <kendo-lineargauge-scale-ranges> * <kendo-lineargauge-scale-range *ngFor="let range of ranges" * [from]="range.from" [to]="range.to" [color]="range.color"> * </kendo-lineargauge-scale-range> * </kendo-lineargauge-scale-ranges> * </kendo-lineargauge-scale> * </kendo-lineargauge> * ` * }) * export class AppComponent { * public ranges: any[] = [{ * from: 0, * to: 15, * color: '#ffd246' * }, { * from: 15, * to: 30, * color: '#28b4c8' * }, { * from: 30, * to: 50, * color: '#78d237' * }]; * } * ``` * * @remarks * Supported children components are: {@link LinearRangeComponent} */ export declare class LinearRangesComponent extends CollectionComponent { children: QueryList<CollectionItemComponent>; constructor(configurationService: ConfigurationService, collectionChangesService: CollectionChangesService); static ɵfac: i0.ɵɵFactoryDeclaration<LinearRangesComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LinearRangesComponent, "kendo-lineargauge-scale-ranges", never, {}, {}, ["children"], never, true, never>; }