Perseus
    Preparing search index...

    Options for the radio widget. Presents a multiple-choice question.

    type PerseusRadioWidgetOptions = {
        choices: PerseusRadioChoice[];
        countChoices?: boolean;
        deselectEnabled?: boolean;
        hasNoneOfTheAbove?: boolean;
        multipleSelect?: boolean;
        numCorrect?: number;
        randomize?: boolean;
    }
    Index

    Properties

    The choices provided to the user.

    countChoices?: boolean

    When true, the learner must select exactly as many choices as there are correct answers before the answer is graded. Only has an effect when there are multiple correct answers.

    deselectEnabled?: boolean
    hasNoneOfTheAbove?: boolean

    Does this have a "none of the above" option?

    multipleSelect?: boolean

    Does this set allow for multiple selections to be correct?

    numCorrect?: number

    How many of the choices are correct, which is conditionally used to tell learners ahead of time how many options they'll need.

    randomize?: boolean

    Randomize the order of the options or keep them as defined