redoc/lib/components/SchemaSample/schema-sample.html

11 lines
525 B
HTML
Raw Normal View History

2015-10-21 17:24:04 +03:00
<div class="snippet">
<!-- in case sample is not available for some reason -->
2016-06-13 20:54:24 +03:00
<pre *ngIf="data.sample == undefined"> Sample unavailable </pre>
2016-07-17 18:07:51 +03:00
<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>
2016-06-22 12:45:03 +03:00
<pre [innerHtml]="data.sample | jsonFormatter"></pre>
2015-10-21 17:24:04 +03:00
</div>