pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
23 lines (22 loc) • 769 B
TypeScript
import React from 'react';
import type { DependentFieldUpdate, Field } from '../form-engine';
interface FormEngineDrawerProps {
title: string;
isOpen: boolean;
showForm?: boolean;
showDrawerButtons?: boolean;
cancelButtonText?: string;
submitButtonText?: string;
marginTop?: string;
children?: React.ReactNode;
fields: Field[];
initialValues?: any;
onSubmit: (data: any) => Promise<void>;
onClose: () => void;
onFieldUpdate?: Record<string, DependentFieldUpdate[]>;
onFieldChange?: (fieldName: string, value: any) => void;
persistenceKey?: string;
}
declare const FormEngineDrawer: React.FC<FormEngineDrawerProps>;
export default FormEngineDrawer;
export type { FormEngineDrawerProps, DependentFieldUpdate };