File

src/ui/viewer/components/field/wrappers/editor/smart-editor-wrapper.component.ts

Extends

AbstractInputWrapperComponent

Metadata

Index

Properties
Methods
Inputs
Outputs

Inputs

buttons
Type : EditorButton[]
Default value : []
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

Outputs

modelChange
Type : EventEmitter<any>

Methods

Public updateValue
updateValue(newValue: any)
Parameters :
Name Type Optional
newValue any No
Returns : void

Properties

textAreaComponent
Type : unknown
Default value : viewChild.required(TextAreaComponent)
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-editor-wrapper.component.html
    Purpose     : Template for Smart Editor Wrapper.
    Author(s)   : Radu Nicoara
    Created     : Jan 16, 2024
--------------------------------------------------------------------------
-->
<kendo-textarea
	smart-widget
	#vTextArea
	[ngClass]="{
		'smart-editor': true,
		'vertical-stretch': field.inputSettings?.editorOptions?.verticalStretch
			? true
			: false
	}"
	[name]="field.fieldName"
	[enabledState]="field.enabledState"
	[disabled]="field.enabledState === 'none'"
	[resizable]="
		field.inputSettings?.editorOptions?.verticalStretch
			? 'none'
			: 'vertical'
	"
	[rows]="4"
	[maxlength]="$safeNavigationMigration(field.inputSettings?.maxLength)"
	[ngModel]="model"
	(focus)="helperService.inputFocused.next(field.fieldName)"
	(blur)="helperService.inputBlurred.next(field.fieldName)"
	(ngModelChange)="updateValue($event)"
	[attr.dataHelpUrl]="field.inputSettings.helpUrl"
	flow="horizontal"
	adornmentsOrientation="vertical"
>
	@if (buttons.length > 0) {
	<kendo-textarea-suffix
		style="
			align-items: flex-start;
			flex-flow: column nowrap;
			flex-direction: column;
			overflow-x: visible;
			overflow-y: visible;
		"
	>
		@for (button of buttons; track button.key) {
		<button
			kendoButton
			fillMode="clear"
			themeColor="base"
			[iconClass]="button.icon"
			[smartEditorButton]="button"
			(editorButtonClicked)="handleButtonClick($event)"
		>
			{{ button.label }}
		</button>
		}
	</kendo-textarea-suffix>
	}
</kendo-textarea>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""