Skip to content
Snippets Groups Projects
Christoph Reiter's avatar
Reiter, Christoph authored
In newer versions there is now a normal method for this which also supports
dynamically added components.

The static version is deprecated and removed in 2.0, so we need to port here.
5a6b94e8
History

Frontend Toolkit Showcase

Setup

yarn install

Local development

yarn run watch-local

You can then open http://127.0.0.1:8001/.

Adding demo pages

  1. Add demo activity path to input list of rollup.config.js
  2. Create assets/*.metadata.json file like assets/file-handling.metadata.json
  3. Reference in assets/*.metadata.json file in the activities part of assets/dbp-toolkit-demo.topic.metadata.json.ejs

Importing demo activities

  • imported demo activity has to be a export class
  • Add the lineimport readme from 'path-to-activity/README.md';
    • example: import readme from '@dbp-toolkit/person-select/README.md';
  • Add the line import {ExportclassName} from 'path-to-activity/src/activity-name';
    • example: import {PersonSelectDemo} from '@dbp-toolkit/person-select/src/dbp-person-select-demo';
  • Add the class to scopedElements
    • example static get scopedElements() { return { 'dbp-person-select-demo': PersonSelectDemo, }; }'