ngx-form-lib
Version:
Dynamic form library for Angular 18 with Material 3 support. Create complex reactive forms easily using JSON configuration with modern Angular 18 control flow syntax.
21 lines (20 loc) • 1.09 kB
TypeScript
import { UntypedFormGroup } from '@angular/forms';
import { BehaviorSubject, Observable } from 'rxjs';
import { Dependency } from '../../shared/models/dependency.model';
import { Field } from '../../shared/models/field.model';
import * as i0 from "@angular/core";
export declare class DependenciesService {
_hiddenFields: BehaviorSubject<{
[key: string]: unknown;
}>;
setDependenciesFields(group: UntypedFormGroup, config: Field<unknown>, formValue: any): void;
getHiddenFields(): Observable<{
[key: string]: unknown;
}>;
setFieldPropertiesToDefault(group: UntypedFormGroup, config: Field<unknown>): void;
disableDependentField(group: UntypedFormGroup, dependency: Dependency, controlName: string): void;
setDependentValue(group: UntypedFormGroup, dependency: Dependency, controlName: string): void;
hideDependentField(controlName: string, dependency: Dependency, hiddenProperty?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DependenciesService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DependenciesService>;
}