Disable

You can disable the entire form or a specific subset of controls in the form.

Disable specific control

To mark controls as disabled, provide a list of form control identifiers to nForm:

<pbl-nform [disabledState]="disabled"></pbl-nform>

where disabled is string[].

nForm supports array diffing so you can mutate the existing array, or replace it on every change...
The disabled state is managed by @angular/forms , nForm will propagate the state to the form controls.

Disable the Form

To disable the entire form you can use the [disabled] @Input.

<pbl-nform [model]="model" disabled></pbl-nform>

Shlomi Assaf © 2019. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.

Version 2.0.0 using angular 14.2.8 and cdk 14.2.6 (hash: 7930787)