drf-react-by-schema
Version:
Components and Tools for building a React App having Django Rest Framework (DRF) as server
23 lines • 922 B
TypeScript
import React from 'react';
import { SxProps, Theme } from '@mui/material';
import { Id, OnSuccessEvent } from '../@types';
interface FormButtonsProps {
model: string;
objId: Id;
title: string;
formDisabled: boolean;
cancelBtn?: React.MouseEventHandler<HTMLButtonElement>;
cancelBtnLabel?: string;
deleteBtnLabel?: string;
saveAndCreateNewBtnLabel?: string;
saveAndContinueBtnLabel?: string;
saveBtnLabel?: string;
onSuccess?: OnSuccessEvent;
bottom?: boolean;
borderBottom?: boolean;
saveAndContinue?: boolean;
sx?: SxProps<Theme>;
}
export default function FormButtons({ model, objId, title, formDisabled, cancelBtn, cancelBtnLabel, deleteBtnLabel, saveAndCreateNewBtnLabel, saveAndContinueBtnLabel, saveBtnLabel, onSuccess, bottom, borderBottom, saveAndContinue, sx, }: FormButtonsProps): React.JSX.Element;
export {};
//# sourceMappingURL=FormButtons.d.ts.map