diff --git a/comps/form/Form.tsx b/comps/form/Form.tsx index 84a921b..53bf4b2 100755 --- a/comps/form/Form.tsx +++ b/comps/form/Form.tsx @@ -56,6 +56,11 @@ export const Form: FC = (props) => { field: null, }, }); + + if (props.render_parent) { + fm.render = props.render_parent; + } + useEffect(() => { // deteksi jika ada softdelete if (Array.isArray(props.feature)) { diff --git a/comps/form/typings.ts b/comps/form/typings.ts index 3284a37..334455e 100755 --- a/comps/form/typings.ts +++ b/comps/form/typings.ts @@ -19,6 +19,7 @@ export type FMProps = { on_load_deps?: any[]; feature?: any[]; sfd_field?: any; + render_parent?: () => void; }; export type GenField =