Skip to content

New: Added support for _canShowCorrectness #147

Merged
kirsty-hames merged 15 commits intomasterfrom
issue/3597
Oct 28, 2024
Merged

New: Added support for _canShowCorrectness #147
kirsty-hames merged 15 commits intomasterfrom
issue/3597

Conversation

@kirsty-hames
Copy link
Contributor

@kirsty-hames kirsty-hames commented Sep 18, 2024

part of adaptlearning/adapt_framework#3597

Allows option _canShowCorrectness instead of _canShowModelAnswer, to replace the associated toggle button and display correctness directly on the component.

New

  • Added support for _canShowCorrectness
  • Show a comma separated list of correct options when _canShowCorrectness true
  • .show-correctness widget class appended for consistency with other question components. Note, there's no associated styling currently.
  • Default prefix text added for the correct options. correctAnswerPrefix and correctAnswersPrefix added to support both single and multiple correct answers. For now this just exists in course _globals but could later add a component level override if needed. Or move these to Core if shared across question components. Prefix is optional.

textinput_prefix

Requires

ref adaptlearning/adapt-contrib-core#582

…ss true

- 'show-correctness' widget class appended for consistency with other question components
Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@kirsty-hames kirsty-hames merged commit 3e0305f into master Oct 28, 2024
@kirsty-hames kirsty-hames deleted the issue/3597 branch October 28, 2024 12:11
github-actions bot pushed a commit that referenced this pull request Oct 28, 2024
# [7.3.0](v7.2.13...v7.3.0) (2024-10-28)

### New

* Added support for _canShowCorrectness  (#147) ([3e0305f](3e0305f)), closes [#147](#147)
@github-actions
Copy link

🎉 This PR is included in version 7.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants