OLD | NEW |
1 <h1 id="apiReference">{{+partials.api_title api:api}} reference</h1> | 1 <h1 id="apiReference">{{+partials.api_title api:api/}} reference</h1> |
2 <div class="api_reference"> | 2 <div class="api_reference"> |
3 {{?api.types}} | 3 {{?api.types}} |
4 <h2 id="types">Types</h2> | 4 <h2 id="types">Types</h2> |
5 {{#api.types}} | 5 {{#t:api.types}} |
6 {{+partials.type display_name:name}} | 6 {{+partials.type display_name:t.name type:t/}} |
7 {{/}} | 7 {{/}} |
8 {{/api.types}} | 8 {{/api.types}} |
9 {{?api.properties}} | 9 {{?api.properties}} |
10 <h2 id="properties">Properties</h2> | 10 <h2 id="properties">Properties</h2> |
11 {{#api.properties}} | 11 {{#p:api.properties}} |
12 {{+partials.api_property api:api property:@}} | 12 {{+partials.api_property api:api property:p/}} |
13 {{/}} | 13 {{/}} |
14 {{/api.properties}} | 14 {{/api.properties}} |
15 {{?api.functions}} | 15 {{?api.functions}} |
16 <h2 id="methods">Methods</h2> | 16 <h2 id="methods">Methods</h2> |
17 {{#api.functions}} | 17 {{#f:api.functions}} |
18 {{+partials.function @:@ api:api}} | 18 {{+partials.function function:f api:api parentName:false/}} |
19 {{/}} | 19 {{/}} |
20 {{/api.functions}} | 20 {{/api.functions}} |
21 {{?api.events}} | 21 {{?api.events}} |
22 <h2 id="events">Events</h2> | 22 <h2 id="events">Events</h2> |
23 {{#api.events}} | 23 {{#e:api.events}} |
24 {{+partials.event @:@ api:api}} | 24 {{+partials.event event:e api:api/}} |
25 {{/}} | 25 {{/}} |
26 {{/api.events}} | 26 {{/api.events}} |
27 {{?api.domEvents}} | 27 {{?api.domEvents}} |
28 <h2 id="dom_events">DOM Events</h2> | 28 <h2 id="dom_events">DOM Events</h2> |
29 <dd> | 29 <dd> |
30 Listeners can be added for these events using the standard HTML | 30 Listeners can be added for these events using the standard HTML |
31 <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> |
32 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 |
33 additional properties as listed with each event.</dd> | 33 additional properties as listed with each event.</dd> |
34 {{#api.domEvents}} | 34 {{#e:api.domEvents}} |
35 {{+partials.dom_event display_name:name @:@ api:api}} | 35 {{+partials.dom_event display_name:e.name event:e api:api/}} |
36 {{/api.domEvents}} | 36 {{/api.domEvents}} |
37 {{/api.domEvents}} | 37 {{/api.domEvents}} |
38 </div> | 38 </div> |
39 {{?samples_list}} | 39 {{?samples_list}} |
40 <h2 id="samples">Sample {{title}} that use chrome.{{api.name}}</h2> | 40 <h2 id="samples">Sample {{title}} that use chrome.{{api.name}}</h2> |
41 <ul> | 41 <ul> |
42 {{#samples_list}} | 42 {{#sample:samples_list}} |
43 <li><strong><a href="samples.html#{{id}}">{{name}}</a></strong> | 43 <li><strong><a href="samples.html#{{sample.id}}">{{sample.name}}</a></strong
> |
44 {{?description}} | 44 {{?description}} |
45 – {{description}} | 45 – {{description}} |
46 {{/description}}</li> | 46 {{/description}}</li> |
47 {{/samples_list}} | 47 {{/samples_list}} |
48 </ul> | 48 </ul> |
49 {{/samples_list}} | 49 {{/samples_list}} |
OLD | NEW |