drf-react-by-schema
Version:
Components and Tools for building a React App having Django Rest Framework (DRF) as server
19 lines • 762 B
TypeScript
import React from 'react';
import { Id } from '../../@types';
export type FormActionsProps = {
formDisabled?: boolean;
model: string;
objId?: Id;
onCancel?: React.MouseEventHandler<HTMLButtonElement>;
onDelete?: (removedId: Id) => void;
bottom?: boolean;
saveAndContinue?: boolean;
title?: string;
labelSave?: string;
labelSaveAndContinue?: string;
labelSaveAndCreateNew?: string;
labelCancel?: string;
labelRemove?: string;
};
export default function FormActions({ formDisabled, model, objId, onCancel, onDelete, bottom, saveAndContinue, title, labelSave, labelSaveAndContinue, labelSaveAndCreateNew, labelCancel, labelRemove, }: FormActionsProps): React.JSX.Element;
//# sourceMappingURL=FormActions.d.ts.map