redoc/lib/components/RequestSamples/request-samples.html

16 lines
793 B
HTML
Raw Normal View History

<header *ngIf="schemaPointer || samples.length"> Request samples </header>
<schema-sample *ngIf="schemaPointer && !samples.length" [skipReadOnly]="true" [pointer]="schemaPointer"> </schema-sample>
<tabs *ngIf="samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
2017-02-27 17:06:05 +03:00
<tab *ngIf="schemaPointer" [tabTitle]="'JSON' | safe">
<schema-sample [pointer]="schemaPointer" [skipReadOnly]="true"> </schema-sample>
2016-01-31 20:37:51 +03:00
</tab>
2017-02-27 17:06:05 +03:00
<tab *ngFor="let sample of samples" [tabTitle]="sample.lang | safe">
2016-07-17 18:07:51 +03:00
<div class="code-sample">
<div class="action-buttons">
2016-07-17 19:44:36 +03:00
<span copy-button [copyText]="sample.source" class="hint--top-left hint--inversed"><a>Copy</a></span>
2016-07-17 18:07:51 +03:00
</div>
<pre [innerHtml]="sample.source | prism:sample.lang"></pre>
</div>
2016-01-31 20:37:51 +03:00
</tab>
</tabs>