Skip to content

ObjectFormComponent

component

Selector: yuv-object-form

Standalone: Yes

Implements: OnDestroy, AfterViewInit

Type: IObjectFormElementExtension[]

Default Value: []

Type: ObjectFormOptions

Type: boolean

Type: boolean

There are special scenarios where forms are within a form themselves. Setting this property to true, will handle the current form in a slightly different way when it comes to form scripting.

Type: boolean

Type: EventEmitter

handler to be executed after the form has been set up

Type: FormStatusChangedEvent

triggered when the forms state has been changed

Type: ObjectFormOptions

Type: ObjectFormGroup

Type: any

Type: number

Default Value: 0

Type: unknown

Default Value: Utils.uuid()

focusForm(): void

Extracts the values from the form model. Each form value is represented by one property on the result object holding the fields value. The keys (properties) are the name properties of the form element.How values are extracted is influenced by the forms situation.

getFormData(): any
getFormElements(): any
getGroup(id: string): ObjectFormGroup
NameTypeDescription
idstring

Returns the observed model that was passed to the current form script running. If there is no form script, this method will return NULL.

getObservedScriptModel(): any
initValidators(form: any): void
NameTypeDescription
formany
patchValue(data: Record<string | unknown>): void
NameTypeDescription
dataRecord<string | unknown>
resetForm(): void
setFormData(data: Record<string | unknown>): void
NameTypeDescription
dataRecord<string | unknown>
setFormPristine(): void