OLD | NEW |
1 {{- Parameters: | 1 {{- Parameters: |
2 |api|: the schema for the API that the function belongs to | 2 |api|: the schema for the API that the function belongs to |
3 |function|: the schema for the function | 3 |function|: the schema for the function |
4 |parentName|: name of the parent object of the function | 4 |parentName|: name of the parent object of the function |
5 -}} | 5 -}} |
6 <div class="summary{{^function.returns}}{{?api}} uncapitalize{{/}}{{/}}"> | 6 <div class="summary{{^function.returns}}{{?api}} uncapitalize{{/}}{{/}}"> |
7 <span>{{?function.returns}}{{+partials.variable_type}} {{/}}{{?api}}chrome.{{api
.name}}{{/}}{{?parentName}}.{{parentName}}{{/}}.{{function.name}}</span>({{#func
tion.parameters}}{{+partials.parameter_item}}{{^last}}, {{/}}{{/}}) | 7 <span>{{?function.returns}}{{+partials.variable_type}} {{/}}{{?api}}chrome.{{api
.name}}{{/}}{{?parentName}}.{{parentName}}{{/}}.{{function.name}}</span>({{#func
tion.parameters}}{{+partials.parameter_item}}{{^last}}, {{/}}{{/}}) |
8 </div> | 8 </div> |
9 <div class="description"> | 9 <div class="description"> |
10 {{?function.description}} | 10 {{?function.description}} |
11 <p> | 11 <p> |
12 {{{function.description}}} | 12 {{{function.description}}} |
13 </p> | 13 </p> |
14 {{/function.description}} | 14 {{/function.description}} |
15 {{?function.parameters}} | 15 {{?function.parameters}} |
16 <h4>Parameters</h4> | 16 <h4>Parameters</h4> |
17 <dl> | 17 <dl> |
18 {{#function.parameters}} | 18 {{#function.parameters}} |
19 {{+partials.parameter_full}} | 19 {{+partials.parameter_full}} |
20 {{/function.parameters}} | 20 {{/function.parameters}} |
21 </dl> | 21 </dl> |
22 {{/function.parameters}} | 22 {{/function.parameters}} |
23 {{?function.callback}} | 23 {{?function.callback}} |
24 {{+partials.callback}} | 24 {{+partials.callback}} |
25 {{/function.callback}} | 25 {{/function.callback}} |
26 {{?function.returns.is_object}} | 26 {{?function.returns.is_object}} |
27 <h4>Properties of return type</h4> | 27 <h4>Properties of return type</h4> |
28 {{+partials.type @:function.returns api:api}} | 28 {{+partials.type @:function.returns}} |
29 {{/function.returns.is_object}} | 29 {{/function.returns.is_object}} |
30 </div> | 30 </div> |
OLD | NEW |