Assess API Events
accessibility:change:color
Fires whenever the learner changes the color settings via the assessment player Accessibility Panel.
You would want to be notified about this event firing, because you might want to update your application UI to match the selected accessibility theme, for example.
Examples
itemsApp.on('accessibility:change:color', function (colorPalette) {
console.log('This code executes when the learner changes the color palette selection on the accessibility panel.');
console.log('The learner changed the color palette to: ', colorPalette);
});
Callback arguments
-
colorPalette string
The id of the color palette that was selected.