src/ui/viewer/components/field/wrappers/textbox/smart-textbox-wrapper.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | SmartTextBoxWrapper |
| templateUrl | ./smart-textbox-wrapper.component.html |
Properties |
Methods |
|
Inputs |
Outputs |
constructor(helperService: SmartViewerHelperService<AbstractFrameComponent>, renderer: Renderer2, elementRef: ElementRef)
|
||||||||||||
|
Parameters :
|
| buttons |
Type : EditorButton[]
|
Default value : []
|
| type |
Type : InputType
|
| componentInstance |
Type : any
|
| contentStyle |
Type : any
|
| field |
Type : any
|
| fieldStyle |
Type : any
|
| hasAbsolutePosition |
Type : boolean
|
| isNumeric |
Type : boolean
|
| model |
Type : any
|
| selected |
Type : any
|
| showDateTimeZone |
Type : boolean
|
| useDateTimeZones |
Type : boolean
|
| modelChange |
Type : EventEmitter<any>
|
| Public handleButtonClick | ||||||
handleButtonClick(button: EditorButton)
|
||||||
|
Handles the click event for a textbox button.
Parameters :
Returns :
void
|
| Public updateValue | ||||||
updateValue(newValue: any)
|
||||||
|
Parameters :
Returns :
void
|
| vTextField |
Type : ElementRef
|
Decorators :
@ViewChild('vTextField', {read: ElementRef})
|
| Public elementRef |
Type : ElementRef
|
| enabledStateDirective |
Type : EnabledStateDirective
|
Decorators :
@ViewChild(EnabledStateDirective)
|
| Public helperService |
Type : SmartViewerHelperService<AbstractFrameComponent>
|
| smartWidgetDirective |
Type : InputFacadeDirective
|
Decorators :
@ViewChild(InputFacadeDirective)
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : smart-textbox-wrapper.component.html
Purpose : Template for Smart Textbox Wrapper.
Author(s) : Radu Nicoara
Created : Jan 16, 2024
--------------------------------------------------------------------------
-->
<kendo-textbox
#vTextField
smart-widget
[name]="field.fieldName"
[type]="type"
[maxlength]="$safeNavigationMigration(field.inputSettings?.maxLength)"
[ngModel]="model"
[enabledState]="field.enabledState"
(ngModelChange)="updateValue($event)"
(focus)="helperService.inputFocused.next(field.fieldName)"
(blur)="helperService.inputBlurred.next(field.fieldName)"
[attr.dataHelpUrl]="field.inputSettings.helpUrl"
>
@if (buttons.length > 0) {
<ng-template kendoTextBoxSuffixTemplate>
@for (button of buttons; track button.key) {
<button
kendoButton
[disabled]="disabled()"
[iconClass]="button.icon"
[smartEditorButton]="button"
(editorButtonClicked)="handleButtonClick($event)"
>
{{ button.label }}
</button>
}
</ng-template>
}
</kendo-textbox>