mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 01:23:43 +03:00
11 lines
525 B
HTML
11 lines
525 B
HTML
<div class="snippet">
|
|
<!-- in case sample is not available for some reason -->
|
|
<pre *ngIf="data.sample == undefined"> Sample unavailable </pre>
|
|
<div class="action-buttons">
|
|
<span> <a *ngIf="enableButtons" (click)="collapseAll()">Collapse all</a> </span>
|
|
<span> <a *ngIf="enableButtons" (click)="expandAll()">Expand all</a> </span>
|
|
<span copy-button [copyText]="data.sample | json" class="hint--top hint--inversed"> <a>Copy</a> </span>
|
|
</div>
|
|
<pre [innerHtml]="data.sample | jsonFormatter"></pre>
|
|
</div>
|