@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
61 lines (60 loc) • 2.88 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";
/**
* Specifies a separator in the content of components like the TextArea and the TextBox. ([see examples]({% slug adornments_textbox %}#toc-separator)).
* @example
* ```ts-no-run
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-textbox>
* <ng-template kendoTextBoxSuffixTemplate>
* <kendo-input-separator></kendo-input-separator>
* <button kendoButton look="clear" icon="image"></button>
* </ng-template>
* </kendo-textbox>
* `
* })
* class AppComponent {}
* ```
*/
export class InputSeparatorComponent {
/**
* Specifies the orientation of the separator. Applicable for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent).
*
* @default 'vertical'
*/
orientation = 'vertical';
get vertical() {
return this.orientation === 'vertical';
}
get horizontal() {
return this.orientation === 'horizontal';
}
hostClass = true;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InputSeparatorComponent, isStandalone: true, selector: "kendo-input-separator, kendo-textbox-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: InputSeparatorComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-input-separator, kendo-textbox-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']
}] } });