/
decorator.template.html
49 lines (46 loc) 路 1.43 KB
/
decorator.template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% import "lib/githubLinks.html" as github -%}
{% import "lib/memberHelpers.html" as memberHelper -%}
{% import "lib/paramList.html" as params -%}
{% extends 'export-base.template.html' %}
{% block overview %}{% include "includes/decorator-overview.html" %}{% endblock %}
{% block details %}
{% include "includes/description.html" %}
<section class="decorator-options">
<h2>Options</h2>
{% for option in doc.members %}
<a id="{$ option.anchor $}"></a>
<table class="is-full-width option-table">
<thead><tr><th>
<div class="with-github-links">
<h3>{$ option.name $}</h3>
{$ github.githubLinks(option, versionInfo) $}
</div>
</th></tr></thead>
<tbody>
<tr>
<td>
{% if option.shortDescription %}{$ option.shortDescription | marked $}{% endif %}
</td>
</tr>
<tr>
<td>
<code-example language="ts" hideCopy="true" class="no-box api-heading{% if option.deprecated %} deprecated-api-item{% endif %}">
{$ option.name $}: {$ option.type | escape $}
</code-example>
</td>
</tr>
<tr>
<td>
{%- if option.description %}
{$ option.description | marked({ h3: 'h4' }) $}
{% endif %}
{%- if option.usageNotes %}
{$ option.usageNotes | marked({ h3: 'h4' }) $}
{% endif %}
</td>
</tr>
</tbody>
</table>
{% endfor %}
</section>
{% endblock %}