mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 05:48:47 +00:00
Add some example docs
This commit is contained in:
parent
5ed0128435
commit
bcf6e41b48
@ -33,6 +33,15 @@ class CustomPanelSample(PanelMixin, IntegrationPluginBase):
|
|||||||
|
|
||||||
def get_custom_panels(self, view, request):
|
def get_custom_panels(self, view, request):
|
||||||
|
|
||||||
|
"""
|
||||||
|
You can decide at run-time which custom panels you want to display!
|
||||||
|
|
||||||
|
- Display on every page
|
||||||
|
- Only on a single page or set of pages
|
||||||
|
- Only for a specific instance (e.g. part)
|
||||||
|
- Based on the user viewing the page!
|
||||||
|
"""
|
||||||
|
|
||||||
panels = [
|
panels = [
|
||||||
{
|
{
|
||||||
# This 'hello world' panel will be displayed on any view which implements custom panels
|
# This 'hello world' panel will be displayed on any view which implements custom panels
|
||||||
|
Loading…
x
Reference in New Issue
Block a user