Skip to content
Snippets Groups Projects
Unverified Commit 921798e4 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add dbp-provider usage documentation

parent fbea8657
No related branches found
No related tags found
No related merge requests found
Pipeline #45722 passed
...@@ -41,6 +41,12 @@ You can provide attributes (e.g. `global-name`) for components inside the provid ...@@ -41,6 +41,12 @@ You can provide attributes (e.g. `global-name`) for components inside the provid
<script type="module" src="node_modules/@dbp-toolkit/provider/dist/dbp-provider.js"></script> <script type="module" src="node_modules/@dbp-toolkit/provider/dist/dbp-provider.js"></script>
``` ```
Or you can also use the CDN to include the component:
```html
<script type="module" src="https://unpkg.com/@dbp-toolkit/provider@0.2.2/dist/dbp-provider.js"></script>
```
All other components are also inherent providers (see below), so you don't really need `dbp-provider` in the shadow dom All other components are also inherent providers (see below), so you don't really need `dbp-provider` in the shadow dom
of other components. The use of `dbp-provider` is mainly suggested being used for namespacing (e.g. different languages of other components. The use of `dbp-provider` is mainly suggested being used for namespacing (e.g. different languages
or entry point urls on the same page) or to deliver attribute changes across different components. or entry point urls on the same page) or to deliver attribute changes across different components.
......
{ {
"name": "@dbp-toolkit/provider", "name": "@dbp-toolkit/provider",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/provider", "homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/provider",
"version": "0.2.2", "version": "0.2.3",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"repository": { "repository": {
......
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