Directory

← Back

Announcer

Audible accessibility announcements

Author

Rating

Popularity

<100

Announcer is a mixin interface which can be added to component when audible notification is needed for accessibility purposes. The add-on is re-using the audible announcement part of the Lumo design system. There is a debouncer in the announcer, which should make this add-on behave well together with the Vaadin components using the same facility.

Sample code

@Route("")
public class View extends VerticalLayout
        implements Announcer, AfterNavigationObserver {

    public View() {
        var button = new Button("Click me", e -> announce("Button clicked",
                AnnouncementMode.ASSERTIVE, 1000));
        add(new Paragraph("Inspect the page to see the announcement"), button);
    }

    @Override
    public void afterNavigation(AfterNavigationEvent event) {
        announce("View navigated");
    }
}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Version 1.0,0

  • Initial version
Released
2024-12-27
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 24+
Browser
Browser Independent

Announcer - Vaadin Add-on Directory

Audible accessibility announcements Announcer - Vaadin Add-on Directory
Announcer is a mixin interface which can be added to component when audible notification is needed for accessibility purposes. The add-on is re-using the audible announcement part of the Lumo design system. There is a debouncer in the announcer, which should make this add-on behave well together with the Vaadin components using the same facility.

Announcer version 1.0.0
### Version 1.0,0 - Initial version

Online