accessibility.change.color - Events - Assess API

Assess API Events


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.


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.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.