From f96418701622c797dcd23e97571b58d66b4ac2fd Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 12 Oct 2021 00:33:14 +0200 Subject: [PATCH] mixin structure --- docs/extend/plugins.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/extend/plugins.md b/docs/extend/plugins.md index 1e11e1d..a6547d7 100644 --- a/docs/extend/plugins.md +++ b/docs/extend/plugins.md @@ -55,4 +55,22 @@ POST { } ``` -For an example of a very simple action plugin, refer to `/InvenTree/plugin/builtin/action/simpleactionplugin.py` \ No newline at end of file +For an example of a very simple action plugin, refer to `/InvenTree/plugin/builtin/action/simpleactionplugin.py` + +### Integration Plugins + +Integration Plugins provide a wide area of deep integration into the interface of InvenTree. + +#### Mixins + +Common usecases are covered by pre-supplied modules in the form of Mixins (similar to how (https://docs.djangoproject.com/en/3.2/topics/class-based-views/mixins/)[django] does it). + +##### SettingsMixin + +##### UrlsMixin + +##### NavigationMixin + +##### AppMixin + +For an example of a pretty much full Integration Plugin, refer to `/InvenTree/plugin/samples/integration/sample.py` \ No newline at end of file