Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: third_party/polymer/v0_8/components-chromium/iron-a11y-announcer/README.md

Issue 1162963002: Revert "Rename polymer and cr_elements v0_8 to v1_0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 iron-a11y-announcer 1 iron-a11y-announcer
2 =================== 2 ===================
3 3
4 `iron-a11y-announcer` is a singleton element that is intended to add a11y 4 `iron-a11y-announcer` is a singleton element that is intended to add a11y
5 to features that require on-demand announcement from screen readers. In 5 to features that require on-demand announcement from screen readers. In
6 order to make use of the announcer, it is best to request its availability 6 order to make use of the announcer, it is best to request its availability
7 in the announcing element. 7 in the announcing element.
8 8
9 Example: 9 Example:
10 10
11 Polymer({ 11 Polymer({
12 is: 'x-chatty', 12 is: 'x-chatty',
13 attached: function() { 13 attached: function() {
14 // This will create the singlton element if it has not 14 // This will create the singlton element if it has not
15 // been created yet: 15 // been created yet:
16 Polymer.IronA11yAnnouncer.requestAvailability(); 16 Polymer.IronA11yAnnouncer.requestAvailability();
17 } 17 }
18 }); 18 });
19 19
20 After the `iron-a11y-announcer` has been made available, elements can 20 After the `iron-a11y-announcer` has been made available, elements can
21 make announces by firing bubbling `iron-announce` events. 21 make announces by firing bubbling `iron-announce` events.
22 22
23 Example: 23 Example:
24 24
25 this.fire('iron-announce', { 25 this.fire('iron-announce', {
26 text: 'This is an announcement!' 26 text: 'This is an announcement!'
27 }, { bubbles: true }); 27 }, { bubbles: true });
28 28
29 Note: announcements are only audible if you have a screen reader enabled. 29 Note: announcements are only audible if you have a screen reader enabled.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698