# SiFormlyComponent documentation

**Kind:** component

**Selector:** `si-formly`

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

Deprecated: This component is based on Angular Formly v6 and will be removed in a future release. Migrate to the standalone `SiFormlyComponent` from `@siemens/element-ng/formly` (Formly v7.1) instead.

```
component SiFormlyComponent<TControl extends { [K in keyof TControl]: AbstractControl }> extends SiFormlyComponent<TControl>
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [fields](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L82-L82>) (inherited) | `FormlyFieldConfig<FormlyFieldProps & { [additionalProperties: string]: any; }>[]` | `[]` | Define all form fields with FormlyFieldConfig array.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [form](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L51-L51>) (inherited) | `FormGroup<TControl> \| undefined` |  | Reactive form used by Formly. A form is created when none is provided.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [labelWidth](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L88-L88>) (inherited) | `number \| undefined` |  | Width in pixels applied to field labels.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [model](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L60-L60>) (inherited) | `{}` | `{}` | Mapping of field name and its value.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L69-L69>) (inherited) | `FormlyFormOptions` | `{}` | Define FormlyFormOptions.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [schema](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L74-L74>) (inherited) | `JSONSchema7 \| undefined` |  | JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [fieldsChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L85-L85>) (inherited) | `FormlyFieldConfig<FormlyFieldProps & { [additionalProperties: string]: any; }>[]` | Emits the effective field configuration, including configuration generated from `schema`.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [formChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L51-L51>) (inherited) | `FormGroup<TControl> \| undefined` | Reactive form used by Formly. A form is created when none is provided.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [modelChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L60-L60>) (inherited) | `{}` | Mapping of field name and its value.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |
| [schemaChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L74-L74>) (inherited) | `JSONSchema7 \| undefined` | JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields.<br><br>Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>) |

#### Attributes and Methods

##### formlyForm

[Source for formlyForm](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L48-L48>)

**Modifiers:** readonly, inherited

**Type:** `Signal<FormlyForm | undefined>`

**Default:** `viewChild(FormlyForm)`

Formly main container to provide modelChange subscriptions.

Inherited from [SiFormlyComponent\<TControl\>](<../../../SiFormlyComponent/index.html#SiFormlyComponent>)
