[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:
Oliver authored and GitHub committed 2026-11-03 16:41:33 +11:00
1 parent ad723c15e4
commit 461186bee9
9 files changed
+231 -1

No files matched your search

+4
View File
@@ -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;
};