2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-01 21:55:43 +00:00

[UI] Plugin actions (#10720)

* Add backend code for custom actions

* docs

* Add sample action code

* Fetch plugin features

* Load plugins and call function

* Support icons

* Alert message

* Update CHANGELOG.md

* Rename action type

* Update docs

* pdated playwright tests
This commit is contained in:
Oliver
2025-10-31 09:41:32 +11:00
committed by GitHub
parent 8d1f7f39b4
commit 16a753bf59
9 changed files with 168 additions and 21 deletions

View File

@@ -69,6 +69,20 @@ For example:
The following user interface feature types are available:
### Spotlight Actions
Inject custom actions into the InvenTree "spotlight" search functionality by implementing the `get_ui_spotlight_actions` method:
::: plugin.base.ui.mixins.UserInterfaceMixin.get_ui_spotlight_actions
options:
show_bases: False
show_root_heading: False
show_root_toc_entry: False
extra:
show_source: True
summary: False
members: []
### Dashboard Items
The InvenTree dashboard is a collection of "items" which are displayed on the main dashboard page. Custom dashboard items can be added to the dashboard by implementing the `get_ui_dashboard_items` method: