2018-08-29 12:23:08 -04:00
|
|
|
{% import "lib/memberHelpers.html" as memberHelpers -%}
|
|
|
|
{% import "lib/descendants.html" as descendants -%}
|
|
|
|
{% import "lib/paramList.html" as params -%}
|
|
|
|
{% extends 'export-base.template.html' -%}
|
|
|
|
|
|
|
|
{% macro renderTable(items, containerClass, headingText, tableHeading) %}
|
|
|
|
<section class="{$ containerClass $}">
|
|
|
|
<h2>{$ headingText $}</h2>
|
|
|
|
<table class="is-full-width list-table property-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{$ tableHeading $}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in items %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code-example language="ts" hideCopy="true" linenums="false" class="no-box">
|
|
|
|
{$ item | escape $}
|
|
|
|
</code-example>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2018-09-08 16:57:46 -04:00
|
|
|
{% macro renderExports(items, cssClass, itemType) %}
|
|
|
|
<section class="{$ cssClass $}s">
|
|
|
|
<h2>{$ itemType $}</h2>
|
|
|
|
<table class="is-full-width list-table {$ cssClass $}-table">
|
|
|
|
<thead>
|
|
|
|
<tr><th>Name</th><th>Description</th></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in items %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{$ item.path $}">
|
2018-09-17 12:37:18 -04:00
|
|
|
<code-example language="ts" hideCopy="true" linenums="false" class="no-box{% if item.deprecated !== undefined %} deprecated-api-item{% endif %}">{$ item.name | escape $}</code-example>
|
2018-09-08 16:57:46 -04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-09-17 12:37:18 -04:00
|
|
|
{% if item.deprecated !== undefined %}{$ ('**Deprecated:** ' + item.deprecated) | marked $}{% endif %}
|
2018-09-08 16:57:46 -04:00
|
|
|
{$ item.shortDescription | marked $}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2018-08-29 12:23:08 -04:00
|
|
|
{% block overview %}
|
|
|
|
{% include "includes/class-overview.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block details %}
|
|
|
|
{% block additional %}{% endblock %}
|
|
|
|
{% include "includes/description.html" %}
|
|
|
|
{$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', 'Static properties') $}
|
|
|
|
{$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', 'Static methods') $}
|
|
|
|
{% if doc.constructorDoc %}
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
{$ memberHelpers.renderMethodDetail(versionInfo, doc.constructorDoc, 'constructor') $}{% endif %}
|
|
|
|
|
|
|
|
{$ memberHelpers.renderProperties(doc.properties, 'instance-properties', 'instance-property', 'Properties') $}
|
|
|
|
|
|
|
|
{$ memberHelpers.renderMethodDetails(versionInfo, doc.methods, 'instance-methods', 'instance-method', 'Methods') $}
|
|
|
|
|
|
|
|
{% if doc.ngmoduleOptions.providers %}
|
|
|
|
{$ renderTable(doc.ngmoduleOptions.providers, 'providers', 'Providers', 'Provider') $}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-09-08 16:57:46 -04:00
|
|
|
{% if doc.directives.length %}
|
|
|
|
{$ renderExports(doc.directives, 'directive', 'Directives') $}
|
|
|
|
{% endif %}
|
|
|
|
{% if doc.pipes.length %}
|
|
|
|
{$ renderExports(doc.pipes, 'pipe', 'Pipes') $}
|
2018-08-29 12:23:08 -04:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|