@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
63 lines (62 loc) • 2.52 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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;
/**
* Represents a hint message that will be shown underneath a form-bound component.
*/
export class HintComponent {
/**
* Specifies the alignment of the Hint message.
*
* The possible values are:
* * (Default) `start`
* * `end`
*/
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: "16.2.12", ngImport: i0, type: HintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: "16.2.12", 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']
}] } });