mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 18:44:31 +00:00
Merge commit 'd38af61ba2fb3c87143da57ddd92bc4845f85a7c' into block-notes
This commit is contained in:
commit
8bf2152c93
24 files changed
+395
-53
No files matched your search
@@ -2,6 +2,7 @@ import type { DefaultMantineColor, MantineStyleProp } from '@mantine/core';
|
||||
import type { UseFormReturnType } from '@mantine/form';
|
||||
import type { JSX, ReactNode } from 'react';
|
||||
import type { FieldValues, UseFormReturn } from 'react-hook-form';
|
||||
import type { NavigateFunction } from 'react-router-dom';
|
||||
import type { ApiEndpoints } from '../enums/ApiEndpoints';
|
||||
import type { ModelType } from '../enums/ModelType';
|
||||
import type { PathParams, UiSizeType } from './Core';
|
||||
@@ -160,6 +161,7 @@ export type ApiFormFieldSet = Record<string, ApiFormFieldType>;
|
||||
* @param modelType : Define a model type for this form
|
||||
* @param follow : Boolean, follow the result of the form (if possible)
|
||||
* @param table : Table to update on success (if provided)
|
||||
* @param navigate : Optional navigate function to use for following results (if follow is true)
|
||||
*/
|
||||
export interface ApiFormProps {
|
||||
url: ApiEndpoints | string;
|
||||
@@ -189,6 +191,7 @@ export interface ApiFormProps {
|
||||
follow?: boolean;
|
||||
actions?: ApiFormAction[];
|
||||
timeout?: number;
|
||||
navigate?: NavigateFunction;
|
||||
keepOpenOption?: boolean;
|
||||
onKeepOpenChange?: (keepOpen: boolean) => void;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user