accessibility.change.fontsize - Events - Assess API

Assess API Events

accessibility:change:fontsize

Fires whenever the learner changes the font size settings via the assessment player Accessibility Panel.

You would want to be notified about this event firing, because you may want to resize the font in your application, for example.

Examples

itemsApp.on('accessibility:change:fontsize', function (fontSize) {
    console.log('This code executes when the learner changes the font size selection on the accessibility panel.');
    console.log('The learner changed the font to: ', fontSize);
});

Callback arguments

  • fontSize string

    A friendly name for the fontSize that was selected.

    Possible values

    • "small"
    • "normal"
    • "large"
    • "xlarge"
    • "xxlarge"

Related articles

Was this article helpful?

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