UNPKG

@progress/kendo-angular-inputs

Version:

Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, Te

66 lines (65 loc) 2.53 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Component, HostBinding, Input } from '@angular/core'; import * as i0 from "@angular/core"; let serial = 0; /** * Displays a hint message under a form-bound component. * * @example * ```html * <kendo-formhint>Hint message here</kendo-formhint> * ``` */ export class HintComponent { /** * Sets the alignment of the hint message. * * @default 'start' */ align = 'start'; /** * @hidden */ id = `kendo-hint-${serial++}`; hostClass = true; get startClass() { return this.align === 'start'; } get endClass() { return this.align === 'end'; } get idAttribute() { return this.id; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: HintComponent, isStandalone: true, selector: "kendo-formhint", inputs: { align: "align" }, host: { properties: { "class.k-form-hint": "this.hostClass", "class.k-text-start": "this.startClass", "class.k-text-end": "this.endClass", "attr.id": "this.idAttribute" } }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HintComponent, decorators: [{ type: Component, args: [{ selector: 'kendo-formhint', template: ` <ng-content></ng-content> `, standalone: true }] }], propDecorators: { align: [{ type: Input }], hostClass: [{ type: HostBinding, args: ['class.k-form-hint'] }], startClass: [{ type: HostBinding, args: ['class.k-text-start'] }], endClass: [{ type: HostBinding, args: ['class.k-text-end'] }], idAttribute: [{ type: HostBinding, args: ['attr.id'] }] } });