Mailspring/docs-templates/_function.html

29 lines
717 B
HTML
Raw Normal View History

<h4 id={{name}} class="function-name">
{{name}} <a href="#{{name}}" class="link"></a>
</h4>
<p>{{{description}}}</p>
{{#if arguments.length}}
<strong>Parameters</strong>
<table class="arguments">
{{#each arguments}}
<tr>
<td style="width:15%;">
<em>{{name}}</em>
</td>
<td>
{{{description}}} {{#if isOptional}} (Optional) {{/if}}
</td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if returnValues.length}}
<strong>Returns</strong>
<table class="arguments">
{{#each returnValues}}
<tr><td style="width:15%;">{{type}}</td><td>{{{description}}}</td></tr>
{{/each}}
</table>
{{/if}}