mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 02:28:43 +00:00
[UI] Launch forms directly from plugin (#13174)
* [UI] Launch forms directly from plugin Provide ability for plugins to dynamically launch modal forms, without specifying the underlying react components. This allows (for example) a primary action on a detail page to launch a new native API form * Add CHANGELOG entry
This commit is contained in:
1 parent
ad723c15e4
commit
461186bee9
9 files changed
+231
-1
No files matched your search
@@ -55,6 +55,10 @@ export type InvenTreeFormsContext = {
|
||||
delete: (props: ApiFormModalProps) => UseModalReturn;
|
||||
edit: (props: ApiFormModalProps) => UseModalReturn;
|
||||
editApiForm: (props: { id?: string; props: ApiFormProps }) => React.ReactNode;
|
||||
openCreate: (props: ApiFormModalProps) => string;
|
||||
openEdit: (props: ApiFormModalProps) => string;
|
||||
openDelete: (props: ApiFormModalProps) => string;
|
||||
close: (id: string) => void;
|
||||
stockActions: StockAdjustmentFormsContext;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user