Skip to content
English
  • There are no suggestions because the search field is empty.

Controlling Eye-Able Assist features with custom buttons

How can I integrate Eye-Able Assist features using my own buttons?

With the Eye-Able Assist API, you can create your own buttons and link them to the available assistance features.


Calling features via your own controls

Most features of Eye-Able Assist can be accessed via the JavaScript API. This allows you to call features directly from your own user interface and adapt them to the design of your website.

Using your own scripts, the features can be integrated flexibly into the website. For example, individual features such as night mode or the blue light filter can be linked to your own controls.


Structure of the API

All features belong to the EyeAbleAPI object and are therefore called via this reference.

Example:

// Example: calling a feature of the Eye-Able Assist API
EyeAbleAPI.resetAll();

This function resets all active settings of Eye-Able Assist.


Events and initialisation

As soon as Eye-Able Assist has been successfully initialised, the event eyeable:init_completed is triggered. You can use this event to run your own functions once Eye-Able Assist has loaded.

Example:

// Run your own function once Eye-Able Assist has been initialised
document.addEventListener("eyeable:init_completed", func);


Frequently used functions

Toggle toolbar

Opens or closes the toolbar of Eye-Able Assist:

EyeAbleAPI.toggleToolbar();

Toggle contrast

Toggles the currently selected contrast mode:

EyeAbleAPI.toggleContrast();

Reset all active features

Resets all active features:

EyeAbleAPI.resetAll();


Technical documentation and further help

All functions available in the API, along with further examples, are described in the technical documentation. The integration requires a small one-off development effort.

Would you like to receive the technical documentation, do you have further questions or do you need personal support? The following article explains how you can get in touch with us: