UNPKG

drf-react-by-schema

Version:

Components and Tools for building a React App having Django Rest Framework (DRF) as server

22 lines (21 loc) 845 B
import React from 'react'; import { Id } from '../utils'; interface FormProps { model: string; id: Id; objTitleField?: string; optionsACModels: string[]; cancelBtn?: (e: React.BaseSyntheticEvent) => any; cancelBtnLabel?: string; deleteBtnLabel?: string; saveAndCreateNewBtnLabel?: string; saveAndContinueBtnLabel?: string; saveBtnLabel?: string; onSuccess?: (e: React.BaseSyntheticEvent) => any; borderBottom?: boolean; saveAndContinue?: boolean; formButtonsSx?: any; children: React.ReactNode; } export default function Form({ model, id, objTitleField, optionsACModels, cancelBtn, cancelBtnLabel, deleteBtnLabel, saveAndCreateNewBtnLabel, saveAndContinueBtnLabel, saveBtnLabel, onSuccess, borderBottom, saveAndContinue, formButtonsSx, children, }: FormProps): JSX.Element; export {};