Configuration
Widget Settings
Set the configuration according to your needs.
After the widget is initialized in "windows", the "goAccessibility" object becomes available.
Methods:
setModesMenuVisible(isVisible?: boolean)
Use the "setModesMenuVisible" method to hide or show the widget's menu. The method can take an optional boolean parameter that specifies what type of action to take.
interface Response { isSuccessfully: boolean; message: string; } const res: Response = window.goAccessibility.setModesMenuVisible(true);
setToggleButtonVisible(isVisible: boolean)
Use the "setToggleButtonVisible" method to hide or show the widget's open button.
interface Response { isSuccessfully: boolean; message: string; } const res: Response = window.goAccessibility.setToggleButtonVisible(true);
getTranslations()
Use the "getTranslations" method to get a list of all available translations for the widget.
interface Response { title: string; value: string; }[]
const res: Response = window.goAccessibility.getTranslations();