@manojadams/metaforms-core
Version:
React Library for rendering dynamic forms from json schema
13 lines (12 loc) • 842 B
TypeScript
import { IDepdendencyItem, IForm } from "../constants/common-interface";
import { IDependency, IField } from "../constants/model-interfaces";
import { TValue } from "../constants/types";
import MetaForm from "../core/MetaForm";
declare class DependencyUtil {
static initDependencies(form: IForm, section: string, fields: Array<IField>): void;
static getDependencies(form: IForm, section: string, field: string): any;
static setDependencies(form: IForm, section: string, field: string, dependencies: IDependency): void;
static setDependency(form: IForm, dependency: IDepdendencyItem, section: string, type: string, field: string): void;
static handleDependencies(metaform: MetaForm, section: string, fieldName: string, value: TValue, fieldDisplayed: boolean): Promise<boolean>;
}
export default DependencyUtil;