Perseus
    Preparing search index...

    Type Alias PerseusNumericInputWidgetOptions

    Options for the numeric-input widget. Accepts a single numeric answer.

    type PerseusNumericInputWidgetOptions = {
        answers: PerseusNumericInputAnswer[];
        coefficient: boolean;
        labelText?: string;
        rightAlign?: boolean;
        size: string;
        static: boolean;
    }
    Index

    Properties

    A list of correct and incorrect answers. Each answer can have a message explaining why it is correct/incorrect. There may be multiple correct answers if multiple formats are accepted. For example, some questions might accept either a fraction or a decimal as correct.

    The first answer that matches (correct or incorrect) is the scoring result (so order of answers is very important).

    coefficient: boolean

    A coefficient style number allows the student to use - for -1 and an empty string to mean 1.

    labelText?: string

    Translatable Text; Text to describe this input. This will be shown to users using screenreaders.

    rightAlign?: boolean

    Whether to right-align the text or not

    size: string

    Use size "Normal" for all text boxes, unless there are multiple text boxes in one line and the answer area is too narrow to fit them. Options: "normal" or "small"

    static: boolean

    Always false. Not used for this widget