File

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

Extends

AbstractInputWrapperComponent

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(helperService: SmartViewerHelperService<AbstractFrameComponent>, renderer: Renderer2, elementRef: ElementRef, formInstanceService?: SmartFormInstanceService)
Parameters :
Name Type Optional
helperService SmartViewerHelperService<AbstractFrameComponent> No
renderer Renderer2 No
elementRef ElementRef No
formInstanceService SmartFormInstanceService Yes

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

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

Properties

Public Optional formInstanceService
Type : SmartFormInstanceService
Decorators :
@Optional()
lookupComponent
Type : SmartLookupComponent
Decorators :
@ViewChild('vLookupField')
lookupElementRef
Type : ElementRef
Decorators :
@ViewChild('vLookupField', {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-lookup-wrapper.component.html
    Purpose     : Template for Smart Lookup Wrapper.
    Author(s)   : Radu Nicoara
    Created     : Jan 16, 2024
--------------------------------------------------------------------------
-->
<smart-lookup
	smart-widget
	#vLookupField
	[numeric]="isNumeric"
	[name]="field.fieldName"
	[enabledState]="field.enabledState"
	[selected]="selected"
	(blur)="helperService.inputBlurred.next(field.fieldName)"
	(focus)="helperService.inputFocused.next(field.fieldName)"
	(afterPerformLookup)="
		helperService.afterPerformLookup.next(field.fieldName)
	"
	(lookupComplete)="helperService.lookupComplete.next(field.fieldName)"
	[dataRequested]="field.inputSettings.lookupOptions.dataRequestedHandler"
	[smart-partial-dataset]="field.inputSettings.lookupOptions.partialDataset"
	[smart-lookup-auto-complete]="
		field.inputSettings.lookupOptions.autocomplete
	"
	[smart-lookup-key-value-field]="
		field.inputSettings.lookupOptions.keyValueField
	"
	[smart-lookup-key-value-field-binding]="
		field.inputSettings.lookupOptions.keyValueFieldBinding
	"
	[smart-lookup-header]="field.inputSettings.lookupOptions.dialogTitle"
	[smart-lookup-key-field]="field.inputSettings.lookupOptions.keyField"
	[smart-lookup-key-field-binding]="
		field.inputSettings.lookupOptions.keyFieldBinding
	"
	[smart-entity-table]="field.inputSettings.lookupOptions.entityTable"
	[smart-entity-view]="field.inputSettings.lookupOptions.entityView"
	[smart-business-entity-name]="field.inputSettings.lookupOptions.entityName"
	[smart-grid-layout]="field.inputSettings.lookupOptions.gridLayout"
	[smart-lookup-fields]="field.inputSettings.lookupOptions.fields"
	[smart-lookup-fields-binding]="
		field.inputSettings.lookupOptions.fieldBinding
	"
	[smart-lookup-disable-autocomplete]="
		field.inputSettings.lookupOptions.disableAutocomplete
	"
	[smart-lookup-multiple]="field.inputSettings.lookupOptions.multiple"
	[smart-lookup-delimiter]="field.inputSettings.lookupOptions.delimiter"
	[smart-server-side-filtering]="
		field.inputSettings.lookupOptions.serverSideFiltering
	"
	[smart-server-side-sorting]="
		field.inputSettings.lookupOptions.serverSideSorting
	"
	[smart-lookup-dialog-options]="
		field.inputSettings.lookupOptions.dialogOptions
	"
	[smartModel]="model"
	[beforePerformLookup]="
		field.inputSettings.lookupOptions?.beforePerformLookup
			? $safeNavigationMigration(
					formInstanceService?.formInstance[
						field.inputSettings.lookupOptions.beforePerformLookup
					]
			  )
			: null
	"
	[smart-filter]="field.inputSettings.lookupOptions.smartFilter"
	(smartModelChange)="updateValue($event)"
	(keyValueModelChange)="updateLookupKeyValue($event)"
	[smart-foreign-fields]="field.inputSettings.lookupOptions.foreignFields"
	[smart-lookup-query-string]="
		field.inputSettings.lookupOptions.lookupQueryString
	"
	[smart-lookup-query-sort]="
		field.inputSettings.lookupOptions.lookupQuerySort
	"
	[smart-lookup-dialog-query-string]="
		field.inputSettings.lookupOptions.lookupDialogQueryString
	"
	[smart-lookup-dialog-query-sort]="
		field.inputSettings.lookupOptions.lookupDialogQuerySort
	"
	[provide-foreign-field-value]="
		field.inputSettings.lookupOptions.provideForeignFieldValue
	"
	[smart-viewer-unbound-field]="field.inputSettings.unbound"
	[smart-help-url]="field.inputSettings.helpUrl"
	[smart-fetch-data-on-navigate]="
		field.inputSettings.lookupOptions.fetchDataOnNavigate
	"
	[smart-fetch-data-from-key-value-on-navigate]="
		field.inputSettings.lookupOptions.fetchDataFromKeyValueOnNavigate
	"
	[smart-stop-after]="field.inputSettings.lookupOptions.stopAfter"
	[editorButtons]="buttons"
	(onEditorButtonClicked)="handleEditorButtonClicked($event)"
>
</smart-lookup>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""