@oat-sa/tao-item-runner-qti
Version:
TAO QTI Item Runner modules
15 lines (13 loc) • 384 B
JavaScript
/**
* List of interactable PCIs
*/
const interactablePcis = ['textReaderInteraction', 'audioRecordingInteraction'];
/**
* Returns a boolean based on weather the PCI should allow interaction or not in review mode
*
* @param {String} pciType
* @returns {Boolean}
*/
export const isInteractionDisabledForPci = pciType => {
return interactablePcis.indexOf(pciType) === -1;
};