Mailspring/app/build/docs_templates/_function.html

41 lines
1,020 B
HTML
Raw Normal View History

2017-01-28 03:42:53 +08:00
<h4 id={{name}} class="function-name">
{{name}}(<span class="args">{{#each arguments}}<span class="arg">{{#if isOptional}}[{{/if}}{{name}}{{#if isOptional}}]{{/if}}</span>{{/each}}</span>) <a href="#{{name}}" class="link"></a>
</h4>
<div class="function-description markdown-from-sourecode">
<p>{{{description}}}</p>
</div>
{{#if arguments.length}}
<strong>Parameters</strong>
<table class="arguments">
<tr>
<th>Argument</th>
<th>Description</th>
</tr>
{{#each arguments}}
<tr>
<td style="width:15%;">
<em>{{name}}</em>
</td>
<td class="markdown-from-sourecode">
{{#if isOptional}}<span class="optional">Optional</span>{{/if}}
{{{description}}}
</td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if returnValues.length}}
<strong>Returns</strong>
<table class="arguments">
<tr>
<th>Return Values</th>
</tr>
{{#each returnValues}}
<tr><td class="markdown-from-sourecode">{{{description}}}</td></tr>
{{/each}}
</table>
{{/if}}