From 6959c8cb5d92bab108c73c028bfa96497a8fd9aa Mon Sep 17 00:00:00 2001 From: wolflu05 <76838159+wolflu05@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:30:36 +0200 Subject: [PATCH] add docs --- docs/docs/extend/plugins/ui.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/docs/extend/plugins/ui.md b/docs/docs/extend/plugins/ui.md index 9c288b42f0..e04905eb8e 100644 --- a/docs/docs/extend/plugins/ui.md +++ b/docs/docs/extend/plugins/ui.md @@ -115,11 +115,19 @@ Currently the following functions can be extended: ### Template editors -The `template_editor` feature type can be used to provide custom template editors. For an example see [`sample_template.js`](https://github.com/inventree/InvenTree/blob/master/src/backend/InvenTree/plugin/samples/static/plugin/sample_template.js). +The `template_editor` feature type can be used to provide custom template editors. + +**Example:** + +{{ includefile("src/backend/InvenTree/plugin/samples/static/plugin/sample_template.js", title="sample_template.js", fmt="javascript") }} ### Template previews -The `template_preview` feature type can be used to provide custom template previews. For an example see [`sample_template.js`](https://github.com/inventree/InvenTree/blob/master/src/backend/InvenTree/plugin/samples/static/plugin/sample_template.js). +The `template_preview` feature type can be used to provide custom template previews. For an example see: + +**Example:** + +{{ includefile("src/backend/InvenTree/plugin/samples/static/plugin/sample_template.js", title="sample_template.js", fmt="javascript") }} ## Sample Plugin