Comments (8)
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.
from h5p-question-set.
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.
from h5p-question-set.
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
from h5p-question-set.
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.
https://h5p.org/events - I've played a little with resize event
Another example its like in drag-question
https://github.com/h5p/h5p-drag-question/blob/master/src/drag-question.js#L26
where they expose "options", I was expecting to have something like this in question-set too
from h5p-question-set.
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.
from h5p-question-set.
Answering your question; Yes!
Having the plugin api; it would be lovely :)
from h5p-question-set.
A bit of an ugly hack, but to get it working right away you could try accessing the H5PIntegration.contents
object. The parameters should be stored there as JSON.
from h5p-question-set.
Thanks for your reply @icc
I have already made a workaround for this, I opened this issue just for a nice to have thingy
from h5p-question-set.
Related Issues (15)
- Finish Button Text missing HOT 1
- Add more question types (enhancement) HOT 1
- Unique question set
- Solution/retry buttons for H5P won't disable HOT 4
- Quiz Start button does not unhide questionset
- I am creating a Quiz(Question Set) in my course activity but multichoice question option is not showing HOT 1
- Can only add 3 Questions on Drupal HOT 2
- Quiz (Question Set) Embedding issue HOT 1
- Quiz finished Fail and Passed video Skip video button doesn't work when embedded HOT 1
- add progress type "bar" HOT 2
- Missing Question Title: Multiple Choice
- Progress dot "unanswered" instead of "answered" in "show solution view" HOT 1
- Add a video or audio HOT 1
- How is this project built HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-question-set.