-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we expose more informations about QuestionSet? #17
Comments
Could you provide an example of what you'll be using it for? At the top of my head, it sounds like triggering a custom start event on the question set it self might be a better idea but it really depends on the use-case. |
Not the event is my problem, the problem its actually object definition, the QuestionSet, I want to add semantics to the object, lets say a checkbox, and my logic, where I process the event, will be dependent on that checkbox value. |
Which platform are you on? All platforms should offer a hook or action that allows you to modify the semantics (recipe of the editor form). Check out the Hiding/disabling fields from the authoring tool section for an example: https://h5p.org/documentation/for-developers/authoring-tool-customization |
I'm using drupal 7 and I can add the semantic, the problem is in the scope of the callback I get access to H5P.QuestionSet which doesn't expose the "options" where my semantic value is, or maybe I'm handling this wrong. Another example its like in drag-question |
Ah, I'm not sure why this is hidden for Drag and Drop. You only need the custom value you've added and not to change it? We're hoping to be able to provide a plugin API soon that will make it easier to override stuff. |
Answering your question; Yes! |
A bit of an ugly hack, but to get it working right away you could try accessing the |
Thanks for your reply @icc |
h5p-question-set/js/questionset.js
Line 138 in ff1fb3a
I would like to be able to add an event on the start button if the introPage is enabled, for this I would need to expose the button, initialParams or params to get details about configuration of the QuestionSet.
What do you think?
The text was updated successfully, but these errors were encountered: