Dashboard: Create sib-dashboard component
Create a sib-dashboard
component which will be used this way:
<sib-dashboard data-src='./path/to.json'></sib-dashboard>
Where ./path/to.json
could be:
{
"@id":"http://server/dashboards/",
"@type":"ldp:Container",
"ldp:contains":[
{
"@id": "http://server/dashboards/1/",
"size": "3",
"content": "Coucou.",
"permissions":[{"mode":{"@type":"view"}}]
},
{
"@id": "http://server/dashboards/2/",
"size": "1",
"content": "Coucou.",
"permissions":[{"mode":{"@type":"view"}}]
},
{
"@id": "http://server/dashboards/3/",
"size": "2",
"content": "Coucou.",
"permissions":[{"mode":{"@type":"view"}}]
}
],
"@context":"https://cdn.happy-dev.fr/owl/hdcontext.jsonld"
}
Rendered this way: https://invis.io/3POVGBKAQD8#/334488442_DASHBOARD
With ./path/to.json
, each box must contain a Coucou.
.