This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Event Assess API

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?