@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
56 lines (55 loc) • 2.17 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { CollectionChangesService, ConfigurationService } from '../services';
import { CollectionItemComponent } from '../base-components';
import { ColorRange } from '../types';
import * as i0 from "@angular/core";
/**
* Represents the configuration options for an ArcGauge color item.
*
* @example
* ```ts
* import { Component } from '@angular/core';
*
* @Component({
* selector: 'my-app',
* template: `
* <kendo-arcgauge [value]="value">
* <kendo-arcgauge-colors>
* <kendo-arcgauge-color
* [from]="0"
* [to]="50"
* color="green">
* </kendo-arcgauge-color>
* </kendo-arcgauge-colors>
* </kendo-arcgauge>
* `
* })
* export class AppComponent {
* public value: number = 25;
* }
* ```
*/
export declare class ColorComponent extends CollectionItemComponent implements ColorRange {
/**
* Sets the color of the range. Accepts a valid CSS color string, including hex and rgb.
*/
color?: string;
/**
* Sets the opacity of the range.
*/
opacity?: number;
/**
* Sets the start value of the range.
*/
from?: number;
/**
* Sets the end value of the range.
*/
to?: number;
constructor(configurationService: ConfigurationService, collectionChangesService: CollectionChangesService);
static ɵfac: i0.ɵɵFactoryDeclaration<ColorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ColorComponent, "kendo-arcgauge-color", never, { "color": { "alias": "color"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "from": { "alias": "from"; "required": false; }; "to": { "alias": "to"; "required": false; }; }, {}, never, never, true, never>;
}