OLD | NEW |
1 <div class="api_reference"> | 1 <div class="api_reference"> |
2 {{- This is a span not a header-tag so that it doesn't show up in the TOC. -}} | 2 {{- This is a span not a header-tag so that it doesn't show up in the TOC. -}} |
3 <span id="api-reference-header">Reference</span> | |
4 {{?api.types}} | 3 {{?api.types}} |
5 <h2 id="types">Types</h2> | 4 <h2 id="types">Types</h2> |
6 {{#t:api.types}} | 5 {{#t:api.types}} |
7 {{+partials.type display_name:t.name type:t/}} | 6 {{+partials.type display_name:t.name type:t/}} |
8 {{/}} | 7 {{/}} |
9 {{/api.types}} | 8 {{/api.types}} |
10 {{?api.properties}} | 9 {{?api.properties}} |
11 <h2 id="properties">Properties</h2> | 10 <h2 id="properties">Properties</h2> |
12 {{#p:api.properties}} | 11 {{#p:api.properties}} |
13 {{+partials.api_property api:api property:p/}} | 12 {{+partials.api_property api:api property:p/}} |
14 {{/}} | 13 {{/}} |
15 {{/api.properties}} | 14 {{/api.properties}} |
16 {{?api.functions}} | 15 {{?api.functions}} |
17 <h2 id="methods">Methods</h2> | 16 <h2 id="methods">Methods</h2> |
18 {{#f:api.functions}} | 17 {{#f:api.functions}} |
19 {{+partials.function function:f api:api parentName:false/}} | 18 {{+partials.function function:f api:api parentName:false/}} |
20 {{/}} | 19 {{/}} |
21 {{/api.functions}} | 20 {{/api.functions}} |
22 {{?api.events}} | 21 {{?api.events}} |
23 <h2 id="events">Events</h2> | 22 <h2 id="events">Events</h2> |
24 {{#e:api.events}} | 23 {{#e:api.events}} |
25 {{+partials.event event:e api:api/}} | 24 {{+partials.event event:e api:api/}} |
26 {{/}} | 25 {{/}} |
27 {{/api.events}} | 26 {{/api.events}} |
28 {{?api.domEvents}} | 27 {{?api.domEvents}} |
29 <h2 id="dom_events">DOM events</h2> | 28 <h2 id="dom_events">DOM Events</h2> |
30 <dd> | 29 <dd> |
31 Listeners can be added for these events using the standard HTML | 30 Listeners can be added for these events using the standard HTML |
32 <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addE
ventListener">addEventListener</a> | 31 <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addE
ventListener">addEventListener</a> |
33 API. Listeners receive a custom <code>Event</code> object which can have | 32 API. Listeners receive a custom <code>Event</code> object which can have |
34 additional properties as listed with each event.</dd> | 33 additional properties as listed with each event.</dd> |
35 {{#e:api.domEvents}} | 34 {{#e:api.domEvents}} |
36 {{+partials.dom_event display_name:e.name event:e api:api/}} | 35 {{+partials.dom_event display_name:e.name event:e api:api/}} |
37 {{/api.domEvents}} | 36 {{/api.domEvents}} |
38 {{/api.domEvents}} | 37 {{/api.domEvents}} |
39 </div> | 38 </div> |
40 {{?samples_list}} | 39 {{?samples_list}} |
41 <h2 id="samples">Sample {{platformTitle}} that use {{api.namespace}}</h2> | 40 <h2 id="samples">Sample {{platformTitle}}</h2> |
42 <ul> | 41 <ul> |
43 {{#sample:samples_list}} | 42 {{#sample:samples_list}} |
44 <li><strong><a href="samples.html#{{sample.id}}">{{sample.name}}</a></strong
> | 43 <li><strong><a href="samples.html#{{sample.id}}">{{sample.name}}</a></strong
> |
45 {{?sample.description}} | 44 {{?sample.description}} |
46 – {{sample.description}} | 45 – {{sample.description}} |
47 {{/sample.description}}</li> | 46 {{/sample.description}}</li> |
48 {{/samples_list}} | 47 {{/samples_list}} |
49 </ul> | 48 </ul> |
50 {{/samples_list}} | 49 {{/samples_list}} |
OLD | NEW |