ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
49 lines (46 loc) • 1.73 kB
HTML
<div class="api-doc-component">
<h3>
<a (click)="trackSourceClick()"
href="https://github.com/valor-software/ng2-bootstrap/tree/development/{{apiDocs.fileName}}"
target="_blank">{{apiDocs.className}}</a>
</h3>
<p [innerHtml]="apiDocs.description"></p>
<template [ngIf]="apiDocs.properties && apiDocs.properties.length">
<section>
<h3 id="inputs">Properties</h3>
<table class="table table-sm table-hover">
<tbody>
<tr *ngFor="let prop of apiDocs.properties">
<td class="col-xs-3"><code>{{prop.name}}</code></td>
<td class="col-xs-9">
<div><i>Type: </i><code>{{ prop.type }}</code></div>
<template [ngIf]="prop.defaultValue">
<div><i>Default value: </i><code>{{prop.defaultValue || '-'}}</code></div>
</template>
<div><span [innerHtml]="prop.description"></span></div>
</td>
</tr>
</tbody>
</table>
</section>
</template>
<template [ngIf]="apiDocs.methods && apiDocs.methods.length">
<section>
<h3 id="methods">Methods</h3>
<table class="table table-sm table-hover">
<tbody>
<tr *ngFor="let method of apiDocs.methods">
<td class="col-xs-3"><code>{{method.name}}</code></td>
<td class="col-xs-9">
<div><i>Signature: </i><code>{{ methodSignature(method) }}</code>
</div>
<div><i>Return type: </i><code>{{ method.returnType }}</code></div>
<div><span [innerHtml]="method.description"></span></div>
</td>
</tr>
</tbody>
</table>
</section>
</template>
</div>
<hr/>