UNPKG

@progress/kendo-angular-common

Version:

Kendo UI for Angular - Utility Package

71 lines (70 loc) 2.96 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"; /** * Specifies a separator in the content of the [Inputs]({% slug adornments_textbox %}#toc-separator) and [DropDowns]({% slug adornments_multiselect %}#toc-separator). * @example * ```ts-no-run * _@Component({ * selector: 'my-app', * template: ` * <kendo-textbox> * <ng-template kendoSuffixTemplate> * <button kendoButton look="clear" icon="image"></button> * <kendo-separator></kendo-separator> * <button kendoButton look="clear" icon="image"></button> * </ng-template> * </kendo-textbox> * ` * }) * class AppComponent {} * ``` */ export class SeparatorComponent { /** * Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent). * * @default 'vertical' */ orientation = 'vertical'; /** * @hidden */ get vertical() { return this.orientation === 'vertical'; } /** * @hidden */ get horizontal() { return this.orientation === 'horizontal'; } /** * @hidden */ hostClass = true; static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SeparatorComponent, isStandalone: true, selector: "kendo-separator", inputs: { orientation: "orientation" }, host: { properties: { "class.k-input-separator-vertical": "this.vertical", "class.k-input-separator-horizontal": "this.horizontal", "class.k-input-separator": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SeparatorComponent, decorators: [{ type: Component, args: [{ selector: 'kendo-separator', template: ``, standalone: true }] }], propDecorators: { orientation: [{ type: Input }], vertical: [{ type: HostBinding, args: ['class.k-input-separator-vertical'] }], horizontal: [{ type: HostBinding, args: ['class.k-input-separator-horizontal'] }], hostClass: [{ type: HostBinding, args: ['class.k-input-separator'] }] } });