Giter Club home page Giter Club logo

Comments (6)

otacke avatar otacke commented on June 10, 2024 1

Please put it under the "Enable show solution button" and make it conditional - only show it if the "Enable show solution button" is enabled. That's what the "ShowWhen" widget can be used for. Guess you can figure out how that works. For peeking: https://github.com/otacke/h5p-dictation/blob/master/semantics.json#L27-L35

from h5p-dictation.

otacke avatar otacke commented on June 10, 2024

Hmm, I understand the intention. I am just a little worried because the behavioral settings is quite bulky already. These settings would need to be grouped sensibly, then I don't see a problem. That will, however, mean changing the data structure (so one needs to be careful to not wreck the translation files that depend on the structure), and one would also have to write an upgrades.js file that moves the parameters to their proper new location when someone updates the content type library (I did something similar in https://github.com/otacke/h5p-agamotto/blob/master/upgrades.js#L51-L90). Nothing wrong with that, just some work that'd have to be done, too. And someone would have to come up with 3 or maybe 4 group labels to put the settings into.

from h5p-dictation.

TiagoJacobs avatar TiagoJacobs commented on June 10, 2024

No problem in creating a upgrade settings code, thanks for pointing this out.

Grouping the options sensibly looks challenging for me, but I can think in a possible approach for this specific case.

We could create a new field with name "Solution display" with three possible options:

  • Never ( equivalent to "enable show solution button" disabled )
  • Automatically ( this new option )
  • Button click ( equivalent to "enable show solution button" enabled )

What do you think?

from h5p-dictation.

otacke avatar otacke commented on June 10, 2024

I'll think about how to group the current options in sub categories. It's than just moving things in semantics.json around and then the same in the translation files.

I wouldn't want to have conflicting options (your 3rd option could contradict the "enable show solution button option"), so having the "Show solution on check" option (boolean) would be fine.

from h5p-dictation.

TiagoJacobs avatar TiagoJacobs commented on June 10, 2024

Nice, so if I understood you correctly, I can proceed implementing this "Show solution on check" and we'll group it later, right?

from h5p-dictation.

otacke avatar otacke commented on June 10, 2024

Yes, it doesn't matter in what order that's done.

from h5p-dictation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.