UNPKG

@progress/kendo-angular-label

Version:
39 lines (38 loc) 1.79 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ /** * Represents the type of the [`labelPosition`](https://www.telerik.com/kendo-angular-ui/components/labels/api/floatinglabelcomponent#labelposition) field and the parameter of the [`positionChange`](https://www.telerik.com/kendo-angular-ui/components/labels/api/floatinglabelcomponent#positionchange) event. * Do not use this type to specify whether the FloatingLabel is outside or inside the associated component. [See example.](https://www.telerik.com/kendo-angular-ui/components/labels/floatinglabel/events) * * The possible values are: * - `Out`&mdash;Indicates that the FloatingLabel is outside the component it is associated with. * - `In`&mdash;Indicates that the FloatingLabel is inside the component it is associated with. * * @example * ```typescript * import { Component } from "@angular/core"; * import { KENDO_FLOATINGLABEL, FloatingLabelPosition } from "@progress/kendo-angular-label"; * * @Component({ * selector: "my-app", * standalone: true, * imports: [KENDO_FLOATINGLABEL], * template: ` * <kendo-floatinglabel * (positionChange)="labelPosition($event)" * text="Enter First Name" * > * <kendo-textbox [style.width.px]="180"></kendo-textbox> * </kendo-floatinglabel> * `, * }) * export class AppComponent { * labelPosition(position: FloatingLabelPosition): void { * ... * } * } * ``` */ export type FloatingLabelPosition = 'Out' | 'In';