Skip to content
Snippets Groups Projects
Commit 1cb04fb8 authored by Marco Del Tufo's avatar Marco Del Tufo
Browse files

Update eln-lims-web-ui-extensions.md

parent 5fc372ec
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment