Dashboard component for startinblox
npm install @startinblox/component-dashboard is a Sib component to generate dashboard from LDP datas.
In your django project, add the djangoldp_dashboard package:
``python`packages.yml
DjangoLDP packages ##
ldppackages:
djangoldp_dashboard: djangoldp_dashboard
Then, run in your shell :
`bash`
pip install djangoldp_dashboard
If everything work correctly, you should be able to see the package in your Django Admin.
Then you have to load the initialisation data to make it work.
Once the package is installed, you can use the solid-dashboard component:
`html
Notes that the "[url]" should be replace by your code fragment api link.
Having multiple dashboard
You can use multiple dashboard on your application by using the
target discriminator.It expect the card to have a matching
target.Card background
A card can have a
background valued as a boolean.If background is
false, then the card will show a transparent background with no border box.$3
| Name | Default | Description |
| --------------- | ---------------------- | :----------------------------------------------------------- |
|
data-src | undefined | URL of the dashboards endpoint. |
| target | default | Name of the dashboard to show. |Developpers
Installation:
`bash
npm install
`Build with:
`bash
npm run build
`Watch files & rebuild on change with this command:
`bash
npm run watch
``