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

Add file handling usage documentation

parent e12f4ca3
No related branches found
No related tags found
No related merge requests found
Pipeline #45696 passed
......@@ -37,6 +37,14 @@ and the file sink dialog will open, so you are able to store the file again.
<script type="module" src="node_modules/@dbp-toolkit/file-handling/dist/dbp-file-sink.js"></script>
```
Or you can include the JS files directly via CDN:
```html
<script type="module" src="https://unpkg.com/@dbp-toolkit/file-handling@0.2.5/dist/dbp-file-source.js"></script>
<script type="module" src="https://unpkg.com/@dbp-toolkit/file-handling@0.2.5/dist/dbp-file-sink.js"></script>
<script type="module" src="https://unpkg.com/@dbp-toolkit/file-handling@0.2.5/dist/dbp-clipboard.js"></script>
```
## FileSource
This web component allows the selection of local files via file dialog or drag and drop and to select and download
......@@ -180,8 +188,8 @@ This web component depends on:
### Usage
```html
<dbp-clipboard subscribe="clipboard-files:clipboard-files-global-name">
</dbp-clipboard>
<dbp-clipboard subscribe="clipboard-files:clipboard-files-global-name">
</dbp-clipboard>
```
### Attributes
......
{
"name": "@dbp-toolkit/file-handling",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling",
"version": "0.2.5",
"version": "0.2.6",
"main": "src/index.js",
"license": "LGPL-2.1-or-later",
"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