Module: accessibility

Component for accessibility settings.

This component provides options for adjusting the accessibility settings of the application, such as color scheme, font type, and font size.

Source:

Example

<accessibility></accessibility>

Methods

(function) data()

Method data
Source:

(function) mounted()

Mounts the component and initializes the accessibility settings.

  • Adds "zoom-1" class to the element.
  • Retrieves the dyslexia and dark mode settings from the local storage.
  • Sets the zoom level to the value stored in the local storage, or defaults to 1.
Source:

(watcher) dark(val)

Sets the dark mode for the component.

Parameters:
Name Type Description
val boolean

The value indicating whether dark mode is enabled or disabled.

Source:

(watcher) dyslexia(val)

Function to handle dyslexia accessibility feature.

Parameters:
Name Type Description
val boolean

The value indicating whether dyslexia mode is enabled or disabled.

Source:

(watcher) zoomlevel(newv, oldv)

Updates the zoom level of the component.

Parameters:
Name Type Description
newv number

The new zoom level.

oldv number

The previous zoom level.

Source: