UNPKG

@progress/kendo-angular-gauges

Version:
58 lines (57 loc) 1.8 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Border } from './border.interface'; import { Margin } from './margin.interface'; import { Padding } from './padding.interface'; /** * Represents the configuration of the scale labels. */ export interface Labels { /** * Sets the background of the labels. * Accepts valid CSS color strings, including hex and rgb. */ background?: string; /** * Sets the border of the labels. */ border?: Border; /** * Sets the color of the labels. * Accepts valid CSS color strings, including hex and rgb. */ color?: string; /** * Sets the font of the labels. */ font?: string; /** * Sets the format that displays the labels. * Uses the IntlService [`format`]({% slug api_intl_intlservice %}#toc-format) method. */ format?: string; /** * Sets the margin of the labels. */ margin?: number | Margin; /** * Sets the padding of the labels. */ padding?: number | Padding; /** * Sets the function which returns the label content. * * The available fields in the function argument are: * * - `value`—The value of the label. * @param {any} e - The parameters for the content callback. * @returns {string} - Returns the label string that will be displayed. */ content?: (e: any) => string; /** * Sets the visibility of the labels. */ visible?: boolean; }