Skip to content
Edit this page

SiFormlyComponent documentation

import { SiFormlyComponent } from '@siemens/element-ng/formly';

Input Properties

Name Type Default Description
fields
FormlyFieldConfig<FormlyFieldProps & { [additionalProperties: string]: any; }>[] []

Define all form fields with FormlyFieldConfig array.

form
FormGroup<TControl> | undefined

Reactive form used by Formly. A form is created when none is provided.

labelWidth
number | undefined

Width in pixels applied to field labels.

model
{} {}

Mapping of field name and its value.

options
FormlyFormOptions {}

Define FormlyFormOptions.

schema
JSONSchema7 | undefined

JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields.

Output Properties

Name Type Description
fieldsChange
FormlyFieldConfig<FormlyFieldProps & { [additionalProperties: string]: any; }>[]

Emits the effective field configuration, including configuration generated from schema.

formChange
FormGroup<TControl> | undefined

Reactive form used by Formly. A form is created when none is provided.

modelChange
{}

Mapping of field name and its value.

schemaChange
JSONSchema7 | undefined

JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields.

Attributes and Methods

Name Type Default Description
(readonly)formlyForm
Signal<FormlyForm | undefined> viewChild(FormlyForm)

Formly main container to provide modelChange subscriptions.


Except where otherwise noted, content on this site is licensed under MIT License.