@klippa/ngx-enhancy-forms 14.16.0 → 14.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/form/form-element/form-element.component.mjs +4 -1
- package/esm2020/lib/form/form.component.mjs +4 -1
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +7 -0
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +6 -0
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/form/form-element/form-element.component.d.ts +1 -0
- package/lib/form/form.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -283,6 +283,9 @@ class FormComponent {
|
|
|
283
283
|
control.disable();
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
+
getFormElementByFormControl(control) {
|
|
287
|
+
return this.activeControls.find((e) => e.formControl === control)?.formElement;
|
|
288
|
+
}
|
|
286
289
|
trySubmit() {
|
|
287
290
|
this.formGroup.markAllAsTouched();
|
|
288
291
|
const allControls = this.getAllFormControls();
|
|
@@ -517,6 +520,9 @@ class FormElementComponent {
|
|
|
517
520
|
getAttachedControl() {
|
|
518
521
|
return this.attachedControl;
|
|
519
522
|
}
|
|
523
|
+
getAttachedInput() {
|
|
524
|
+
return this.input;
|
|
525
|
+
}
|
|
520
526
|
registerErrorHandler(error, templateRef) {
|
|
521
527
|
this.customErrorHandlers.push({ error, templateRef });
|
|
522
528
|
}
|