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

11 lines
508 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 -->
<pre *ngIf="sample == undefined"> Sample unavailable </pre>
2016-07-17 18:07:51 +03:00
<div class="action-buttons">
2016-11-23 02:23:32 +03:00
<span copy-button [copyText]="sample" class="hint--top-left hint--inversed"> <a>Copy</a> </span>
2016-07-17 18:07:51 +03:00
<span> <a *ngIf="enableButtons" (click)="expandAll()">Expand all</a> </span>
2016-11-23 02:23:32 +03:00
<span> <a *ngIf="enableButtons" (click)="collapseAll()">Collapse all</a> </span>
2016-07-17 18:07:51 +03:00
</div>
<pre [innerHtml]="sample | jsonFormatter"></pre>
2015-10-21 17:24:04 +03:00
</div>