How to use the setFeedback() function
I am working on a H5P content which is not a question type. At the end of the activity I need to display a score. I can use the scorebar without any problem, like this:
scoreBar = JoubelUI.createScoreBar(maxScore); scoreBar.setScore(actualScore); scoreBar.appendTo($feedback);
But I would like to add a score explanation to the score bar. I think that I need to use the setFeedback() function which resides in the H5P.Question-1.4 library. I have added it to my own library in the preloadedDependencies section.
But when I call the setFeedback() function (with the relevant parametres) I get this error message:
TypeError: this.setFeedback is not a function
What can I do? Thanks in advance.