ObjectFormComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-object-form
Standalone: Yes
Implements: OnDestroy, AfterViewInit
Inputs
Section titled “Inputs”elementExtensions
Section titled “elementExtensions”Type: IObjectFormElementExtension[]
Default Value: []
formOptions
Section titled “formOptions”Type: ObjectFormOptions
Type: boolean
isInnerTableForm
Section titled “isInnerTableForm”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.
readonly
Section titled “readonly”Type: boolean
Outputs
Section titled “Outputs”onFormReady
Section titled “onFormReady”Type: EventEmitter
handler to be executed after the form has been set up
statusChanged
Section titled “statusChanged”Type: FormStatusChangedEvent
triggered when the forms state has been changed
Properties
Section titled “Properties”Type: ObjectFormOptions
Type: ObjectFormGroup
formData
Section titled “formData”Type: any
gCount
Section titled “gCount”Type: number
Default Value: 0
Type: unknown
Default Value: Utils.uuid()
Methods
Section titled “Methods”focusForm
Section titled “focusForm”focusForm(): voidgetFormData
Section titled “getFormData”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(): anygetFormElements
Section titled “getFormElements”getFormElements(): anygetGroup
Section titled “getGroup”getGroup(id: string): ObjectFormGroupArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| id | string |
getObservedScriptModel
Section titled “getObservedScriptModel”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(): anyinitValidators
Section titled “initValidators”initValidators(form: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| form | any |
patchValue
Section titled “patchValue”patchValue(data: Record<string | unknown>): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| data | Record<string | unknown> |
resetForm
Section titled “resetForm”resetForm(): voidsetFormData
Section titled “setFormData”setFormData(data: Record<string | unknown>): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| data | Record<string | unknown> |
setFormPristine
Section titled “setFormPristine”setFormPristine(): void