Perseus
    Preparing search index...

    Type Alias PerseusExpressionWidgetOptions

    Options for the expression widget. Accepts a math expression answer.

    type PerseusExpressionWidgetOptions = {
        answerForms: PerseusExpressionAnswerForm[];
        ariaLabel?: string;
        buttonSets: LegacyButtonSets;
        buttonsVisible?: "always" | "never" | "focused";
        extraKeys?: KeypadKey[];
        functions: string[];
        times: boolean;
        visibleLabel?: string;
    }
    Index

    Properties

    The expression forms the answer may come in

    ariaLabel?: string

    Aria label for screen readers attached to MathQuill field

    buttonSets: LegacyButtonSets
    buttonsVisible?: "always" | "never" | "focused"

    Controls when buttons for special characters are visible when using a desktop browser. Defaults to "focused". NOTE: This isn't listed in perseus-format.js or perseus_data.go, but appears in item data in the datastore.

    extraKeys?: KeypadKey[]

    What extra keys need to be displayed on the keypad so that the question can be answerable without a keyboard (ie mobile)

    functions: string[]

    Variables that can be used as functions. Default: ["f", "g", "h"]

    times: boolean

    Use x for rendering multiplication instead of a center dot.

    visibleLabel?: string

    Visible label associated with the MathQuill field