Skip to content

SiFormlyComponent documentation

selector
si-formly

Input Properties

Name Type Default Description
fields
FormlyFieldConfig<(FormlyFieldProps & { [ additionalProperties: string ]: any } })>[] [] Define all form fields with FormlyFieldConfig array.
form
FormGroup<TControl> Reactive form used by Formly. A form is created when none is provided.
labelWidth
number Width in pixels applied to field labels.
model
{} {} Mapping of field name and its value.
options
FormlyFormOptions {} Define FormlyFormOptions.
schema
JSONSchema7 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> Reactive form used by Formly. A form is created when none is provided.
modelChange
{} Mapping of field name and its value.
schemaChange
JSONSchema7 JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields.

Attributes and Methods

Name Type Default Description
(readonly) formlyForm
Signal<(FormlyForm | undefined)> ... Formly main container to provide modelChange subscriptions.

Types Documentation

imported from @ngx-formly/core
imported from @ngx-formly/core
imported from @ngx-formly/core
import
imported from @types/json-schema
import
imported from @ngx-formly/core

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