2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-03-12 07:03:36 +00:00
Files
InvenTree/docs/docs/plugins/mixins/icon.md
Oliver 6b08e45eac Docs refactor (#9545)
* Refactor / reognaize docs structure

* Refactor plugin docs structure

* More refactoring / cleanup

* Update build images

* Gallery updates

* Order images

* Update part docs

* Settings images

* Stock images

* Reitntroduce gallery

* Add custom icon macro

* Update icons

* Cleanup

* Fix link

* Fix internal links

* Revert some page moves

* Fix links

* Fix links
2025-04-22 08:18:32 +10:00

746 B

title
title
Icon Pack Mixin

IconPackMixin

The IconPackMixin class provides basic functionality for letting plugins expose custom icon packs that are available in the InvenTree UI. This is especially useful to provide a custom crafted icon pack with icons for different location types, e.g. different sizes and styles of drawers, bags, ESD bags, ... which are not available in the standard tabler icons library.

Sample Plugin

The following example demonstrates how to use the IconPackMixin class to add a custom icon pack:

::: plugin.samples.icons.icon_sample.SampleIconPlugin options: show_bases: False show_root_heading: False show_root_toc_entry: False show_source: True members: []