Blame view

bower_components/iron-a11y-announcer/README.md 852 Bytes
c5169e0e   Renato De Donato   a new hope
1
2
  iron-a11y-announcer
  ===================
73bcce88   luigser   COMPONENTS
3
4
5
6
7
8
9
10
11
  
  `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({
73bcce88   luigser   COMPONENTS
12
        is: 'x-chatty',
73bcce88   luigser   COMPONENTS
13
        attached: function() {
c5169e0e   Renato De Donato   a new hope
14
          // This will create the singlton element if it has not
73bcce88   luigser   COMPONENTS
15
16
17
18
          // been created yet:
          Polymer.IronA11yAnnouncer.requestAvailability();
        }
      });
c5169e0e   Renato De Donato   a new hope
19
      
73bcce88   luigser   COMPONENTS
20
21
22
23
24
25
26
27
  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 });
c5169e0e   Renato De Donato   a new hope
28
      
73bcce88   luigser   COMPONENTS
29
  Note: announcements are only audible if you have a screen reader enabled.