From 1cb04fb850717ca6fc05b83364cec5875ed9e838 Mon Sep 17 00:00:00 2001 From: Marco Del Tufo <marco.deltufo@exact-lab.it> Date: Mon, 24 Jul 2023 13:48:36 +0000 Subject: [PATCH] Update eln-lims-web-ui-extensions.md --- .../client-side-extensions/eln-lims-web-ui-extensions.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/software-developer-documentation/client-side-extensions/eln-lims-web-ui-extensions.md b/docs/software-developer-documentation/client-side-extensions/eln-lims-web-ui-extensions.md index 5aad91e7cc3..d7e252ea38b 100644 --- a/docs/software-developer-documentation/client-side-extensions/eln-lims-web-ui-extensions.md +++ b/docs/software-developer-documentation/client-side-extensions/eln-lims-web-ui-extensions.md @@ -29,9 +29,11 @@ Each extension currently contains a single file with name "plugin.js". Contains a section called  PLUGINS\_CONFIGURATION indicating the plugins to be loaded from the plugins folder. +```js var PLUGINS_CONFIGURATION = { extraPlugins : ["life-sciences", "flow", "microscopy"] } +``` ### plugin.js file @@ -105,6 +107,7 @@ Pattern](https://en.wikipedia.org/wiki/Interceptor_pattern) An example with only type configurations extensions is show below. +```js function MyTechnology() { this.init(); } @@ -153,12 +156,14 @@ An example with only type configurations extensions is show below. }); profile.plugins.push(new MyTechnology()); +``` ### Toolbar Extensions An example with only toolbar extensions is shown below, variables with a dollar sign '$' indicate they are jquery components: +```js function MyTechnology() { this.init(); } @@ -198,8 +203,9 @@ dollar sign '$' indicate they are jquery components: }); profile.plugins.push(new MyTechnology()); +``` ### Extra Views as Utilities Please check the provided example: -<https://sissource.ethz.ch/sispub/openbis/-/blob/master/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/plugins/template-extra-utilities/plugin.js> \ No newline at end of file +<https://sissource.ethz.ch/sispub/openbis/-/blob/master/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/plugins/template-extra-utilities/plugin.js> -- GitLab