tree: 878ad67eb493b9ed7078d44476a93edae41219a3 [path history] [tgz]
  1. .github/
  2. demo/
  3. test/
  4. .bower.json
  5. .gitignore
  6. .travis.yml
  7. bower.json
  8. CONTRIBUTING.md
  9. index.html
  10. iron-a11y-announcer.html
  11. README.md
polymer_1.8.1/bower_components/iron-a11y-announcer/README.md

Build status

Demo and API docs

##<iron-a11y-announcer>

iron-a11y-announcer is a singleton element that is intended to add a11y to features that require on-demand announcement from screen readers. In order to make use of the announcer, it is best to request its availability in the announcing element.

Example:

Polymer({

  is: 'x-chatty',

  attached: function() {
    // This will create the singleton element if it has not
    // been created yet:
    Polymer.IronA11yAnnouncer.requestAvailability();
  }
});

After the iron-a11y-announcer has been made available, elements can make announces by firing bubbling iron-announce events.

Example:

this.fire('iron-announce', {
  text: 'This is an announcement!'
}, { bubbles: true });

Note: announcements are only audible if you have a screen reader enabled.