@pie-qti/player-elements 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/{define-DBqFBy2X.js → define-YtdQJk81.js} +11146 -8576
- package/dist/define-YtdQJk81.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/qti/parseAssessmentTest.d.ts.map +1 -1
- package/dist/register.js +1 -1
- package/package.json +3 -3
- package/dist/define-DBqFBy2X.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @pie-qti/player-elements
|
|
2
2
|
|
|
3
|
-
Framework-agnostic **Web Components (Custom Elements)** for the QTI
|
|
3
|
+
Framework-agnostic **Web Components (Custom Elements)** for the QTI players in this repo.
|
|
4
4
|
|
|
5
5
|
## Elements
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ const el = document.querySelector('pie-qti-item-player');
|
|
|
32
32
|
el.itemXml = qtiItemXmlString;
|
|
33
33
|
el.identifier = 'item-1';
|
|
34
34
|
el.title = 'My Item';
|
|
35
|
-
el.role = 'candidate'; // QTI
|
|
35
|
+
el.role = 'candidate'; // QTI role/view actor
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Listen for interactions/responses
|
|
@@ -75,8 +75,8 @@ el.items = {
|
|
|
75
75
|
|
|
76
76
|
```js
|
|
77
77
|
el.config = {
|
|
78
|
-
role: 'candidate', // QTI
|
|
79
|
-
navigationMode: 'nonlinear', // QTI
|
|
78
|
+
role: 'candidate', // QTI role/view actor
|
|
79
|
+
navigationMode: 'nonlinear', // QTI navigation mode
|
|
80
80
|
showSections: true
|
|
81
81
|
};
|
|
82
82
|
```
|