Skip to content
Snippets Groups Projects
Commit d399ff20 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Add demo activity for file handling

parent 0e0c67ea
No related branches found
No related tags found
No related merge requests found
Pipeline #13166 passed
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"activities": [ "activities": [
{"path": "person-select.metadata.json"}, {"path": "person-select.metadata.json"},
{"path": "knowledge-base-web-page-element-view.metadata.json"}, {"path": "knowledge-base-web-page-element-view.metadata.json"},
{"path": "file-handling.metadata.json"},
{"path": "common.metadata.json"} {"path": "common.metadata.json"}
], ],
"attributes": [] "attributes": []
......
{
"element": "dbp-file-handling-demo",
"module_src": "dbp-file-handling-demo.js",
"routing_name": "file-handling",
"name": {
"de": "File Handling",
"en": "File Handling"
},
"short_name": {
"de": "File Handling",
"en": "File Handling"
},
"description": {
"de": "Filepicker für File Upload und Download",
"en": "Filepicker for upload and download files"
}
}
import {css, html, LitElement} from 'lit-element';
import {ScopedElementsMixin} from '@open-wc/scoped-elements';
import * as commonUtils from 'dbp-common/utils';
import * as commonStyles from 'dbp-common/styles';
import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from 'dbp-file-handling/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css';
class DbpFileHandlingDemoActivity extends ScopedElementsMixin(LitElement) {
static get scopedElements() {
return {
};
}
static get properties() {
return {
};
}
connectedCallback() {
super.connectedCallback();
this.updateComplete.then(()=>{
});
}
static get styles() {
// language=css
return [
commonStyles.getThemeCSS(),
commonStyles.getGeneralCSS(),
css`
h1.title {margin-bottom: 1em;}
div.container {margin-bottom: 1.5em;}
`
];
}
render() {
return html`
xxx
yyy
`;
}
}
commonUtils.defineCustomElement('dbp-file-handling-demo', DbpFileHandlingDemoActivity);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment