Course Dashboard Embed
Quick Start
The Annoto course dashboard can be embedded in any context as a web-component:
<head>
<link href="https://dashboard.annoto.net/build/annotodashboard.css" rel="stylesheet">
</head>
<body>
<script type="module" src="https://dashboard.annoto.net/build/annotodashboard.esm.js"></script>
<script nomodule defer src="https://dashboard.annoto.net/build/annotodashboard.js"></script>
<nnd-course-root responsive='false' history-type='compose' compose-history></nnd-course-root>
<script>
var courseEl = document.querySelector('nnd-course-root');
courseEl.clientId = 'eyJhbGciOiJIUzI1...';
courseEl.courseDetails = {
id: 'ba028414-56f8', // your course identifier
title: 'How to ebmed Course Dashboard',
};
var ssoToken = 'eyJhbGciOiJIUzI1...'; // user jwt token
courseEl.addEventListener('nndReady', function() {
courseEl.authenticateSSO(ssoToken);
});
</script>
</body>Setup
The Annoto course dashboard can be embedded in any context as a web-component. Simply add the following scripts:
The following stylesheet:
The course dashboard can now be embedded anywhere on the page using the html tag:
Configuration Properties
The dashboard supports various configuration options:
SSO Authentication
To authenticate a user using SSO, the component exposes the following methods:
Browser Compatibility
Annoto is compatible with all major evergreen browsers (Edge, Chrome, Mozilla, Safari).
Last updated