PsyTask | API Docs
    Preparing search index...

    Variable jsPsychStimConst

    jsPsychStim: (
        props: TrialType<PluginInfo>,
    ) => {
        data: () => LooseObject;
        node: HTMLDivElement & Omit<Partial<HTMLDivElement>, "style"> & {
            style?: string;
        };
    } = ...

    Create a scene with jsPsych Plugins

    Type Declaration

    Basic usage

    using scene = app.scene(jsPsychStim, {
    defaultProps: {
    type: (
    await import('https://cdn.jsdelivr.net/npm/@jspsych/plugin-survey/+esm')
    ).default,
    stimulus: 'default',
    choices: ['f', 'j'],
    },
    });
    await scene.show({ stimulus: 'new' }); // change stimulus