added constructors/types

This commit is contained in:
Spocke
2016-07-01 17:19:03 +02:00
parent 51f1ebd817
commit 8708a00677
+85 -4
View File
@@ -33,9 +33,9 @@
<td>{{ item.name }}</td>
<td>
{% if item.dataTypes[0] contains 'tinymce' %}
<a href="{{ site.baseurl }}/api/{{ item.dataTypes[0] | api_url }}">{{ item.dataTypes[0] }}</a>
<a href="{{ site.baseurl }}/api/{{ item.dataTypes[0] | api_url }}"><span class="param-type">{{ item.dataTypes[0] }}</span></a>
{% else %}
{{ item.dataTypes[0] }}
<span class="param-type">{{ item.dataTypes[0] }}</span>
{% endif %}
</td>
<td>{{ item.desc | no_nl }}</td>
@@ -67,9 +67,9 @@
<td>{{ item.name }}</td>
<td>
{% if item.dataTypes[0] contains 'tinymce' %}
<a href="{{ site.baseurl }}/api/{{ item.dataTypes[0] | api_url }}">{{ item.dataTypes[0] }}</a>
<a href="{{ site.baseurl }}/api/{{ item.dataTypes[0] | api_url }}"><span class="param-type">{{ item.dataTypes[0] }}</span></a>
{% else %}
{{ item.dataTypes[0] }}
<span class="param-type">{{ item.dataTypes[0] }}</span>
{% endif %}
</td>
<td>{{ item.desc | no_nl }}</td>
@@ -82,6 +82,32 @@
</table>
{% endif %}
{% if include.data.constructors.size > 0 %}
<a class="anchor" id="constructors"></a>
<h2><a class="anchorable" href="#constructors">Constructors</a></h2>
<table class="constructors">
<thead>
<tr>
<th>name</th>
<th>summary</th>
<th class="defined-by">defined by</th>
</tr>
</thead>
<tbody>
{% for item in include.data.constructors %}
<tr>
<td><a href="#{{ item.name | anchor }}">{{ item.name }}()</a></td>
<td>{{ item.desc | no_nl }}</td>
<td class="defined-by">
<a href="{{ site.baseurl }}/api/{{ item.definedBy | api_url }}">{{ item.definedBy }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if include.data.methods.size > 0 %}
<a class="anchor" id="methods"></a>
<h2><a class="anchorable" href="#methods">Methods</a></h2>
@@ -134,6 +160,61 @@
</table>
{% endif %}
{% if include.data.constructors.size > 0 %}
<h2>Constructors</h2>
{% for item in include.data.constructors %}
<a class="anchor" id="{{ item.name | anchor }}"></a>
<h3><a class="anchorable" href="#{{ item.name | anchor }}">{{ item.name }}</a></h3>
<div class="signature">{{ item.signature }}</div>
<p>{{ item.desc | no_nl }}</p>
{% if item.examples.size > 0 %}
<h5>Examples</h5>
{% for example in item.examples %}
<pre class="prettyprint"><code class="js" data-lang="js">{{example.content | filter_code}}</code></pre>
{% endfor %}
{% endif %}
{% if item.params.size > 0 %}
<h5>Parameters</h5>
<ul>
{% for param in item.params %}
<li>
<span class="param-name">{{ param.name }}</span>
{% if param.types[0] contains 'tinymce' %}
<a href="{{ site.baseurl }}/api/{{ param.types[0] | api_url }}"><span class="param-type">({{ param.types[0] }})</span></a>
{% else %}
<span class="param-type">({{ param.types[0] }})</span>
{% endif %}
- {{ param.desc | no_nl }}
</li>
{% endfor %}
</ul>
{% endif %}
{% if item.return.types.size > 0 %}
<h5>Return value</h5>
<ul>
{% for type in item.return.types %}
<li>
{% if type contains 'tinymce' %}
<a href="{{ site.baseurl }}/api/{{ type | api_url }}"><span class="return-type">{{ type }}</span></a>
{% else %}
<span class="return-type">{{ type }}</span>
{% endif %}
- {{ item.return.desc | no_nl }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endif %}
{% if include.data.methods.size > 0 %}
<h2>Methods</h2>