Perseus
    Preparing search index...

    Type Alias UniversalWidgetProps<TUserInput, TrackingExtraArgs>

    The props passed to every widget, regardless of its type.

    type UniversalWidgetProps<TUserInput = Empty, TrackingExtraArgs = Empty> = {
        alignment: string | null | undefined;
        apiOptions: APIOptionsWithDefaults;
        containerSizeClass: SizeClass;
        findWidgets: (criterion: FilterCriterion) => ReadonlyArray<Widget>;
        handleUserInput: (
            newUserInput: TUserInput,
            cb?: () => void,
            silent?: boolean,
        ) => void;
        keypadElement?: any;
        linterContext: LinterContextProps;
        onBlur: (blurPath: FocusPath) => void;
        onFocus: (blurPath: FocusPath) => void;
        problemNum: number | null | undefined;
        reviewMode: boolean;
        showSolutions?: ShowSolutions;
        static: boolean | null | undefined;
        trackInteraction: (extraData?: TrackingExtraArgs) => void;
        userInput: TUserInput;
        widgetId: string;
        widgetIndex: number;
    }

    Type Parameters

    Index

    Properties

    alignment: string | null | undefined
    containerSizeClass: SizeClass
    findWidgets: (criterion: FilterCriterion) => ReadonlyArray<Widget>
    handleUserInput: (
        newUserInput: TUserInput,
        cb?: () => void,
        silent?: boolean,
    ) => void
    keypadElement?: any
    linterContext: LinterContextProps
    onBlur: (blurPath: FocusPath) => void
    onFocus: (blurPath: FocusPath) => void
    problemNum: number | null | undefined
    reviewMode: boolean
    showSolutions?: ShowSolutions
    static: boolean | null | undefined
    trackInteraction: (extraData?: TrackingExtraArgs) => void
    userInput: TUserInput
    widgetId: string
    widgetIndex: number