@ithaka/bonsai
Version:
ITHAKA core styling
126 lines (117 loc) • 3.19 kB
HTML
<section>
<h2>Javascript Reference</h2>
{{#each js.class}}
<section>
<h3>{{this.name}}</h3>
<span class="mvl">{{markdown this.description}}</span>
{{#if this.examples.[0]}}
<div class="mvm docs-code">
<code>{{this.examples.[0]}}</code>
</div>
{{/if}}
{{#if this.params}}
<div>
<h3>Constructor Params</h3>
<table class="docs-variable-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{#each this.params}}
<tr>
<td>
{{this.name}}
</td>
<td>
{{this.type.names}}
</td>
<td>
{{markdown this.description}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{/if}}
{{#if this.properties}}
<div>
<h3>Class Properties</h3>
<table class="docs-variable-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{#each this.properties}}
<tr>
<td>
{{this.name}}
</td>
<td>
{{this.type.names}}
</td>
<td>
{{markdown this.description}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{/if}}
</section>
<hr>
{{/each}}
{{#if js.event}}
<section class="mtm">
<h3>Events</h3>
<table class="docs-variable-table">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{#each js.event}}
<tr>
<td><code>{{this.name}}</code></td>
<td>{{markdown this.description}}</td>
</tr>
{{/each}}
</tbody>
</table>
</section>
<hr>
{{/if}}
{{#if js.function}}
<section>
<h3>Methods</h3>
<table class="docs-variable-table">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{#each js.function}}
<tr>
<td><code>{{this.name}}</code></td>
<td>{{markdown this.description}}</td>
</tr>
{{/each}}
</tbody>
</table>
</section>
<hr>
{{/if}}
</section>