2017-04-27 15:32:46 -07:00
|
|
|
<div *ngIf="hasToc" [class.closed]="isClosed">
|
2017-04-27 15:33:50 -07:00
|
|
|
<div *ngIf="!hasSecondary" class="toc-heading">Contents</div>
|
2017-05-02 10:13:10 -07:00
|
|
|
<div *ngIf="hasSecondary" class="toc-heading secondary"
|
2017-05-09 15:36:24 -07:00
|
|
|
(click)="toggle(false)"
|
2017-04-27 15:32:46 -07:00
|
|
|
title="Expand/collapse contents"
|
|
|
|
|
aria-label="Expand/collapse contents">
|
2017-05-02 10:13:10 -07:00
|
|
|
<p>Table of Contents<button type="button" class="toc-show-all material-icons" [class.closed]="isClosed"></button></p>
|
2017-04-27 15:32:46 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<ul class="toc-list">
|
|
|
|
|
<li *ngFor="let toc of tocList" title="{{toc.title}}" class="{{toc.level}}" [class.secondary]="toc.isSecondary">
|
|
|
|
|
<a [href]="toc.href" [innerHTML]="toc.content"></a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<button type="button" (click)="toggle()" *ngIf="hasSecondary"
|
|
|
|
|
class="toc-more-items material-icons" [class.closed]="isClosed"
|
|
|
|
|
title="Expand/collapse contents"
|
|
|
|
|
aria-label="Expand/collapse contents">
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|