2016-07-20 11:07:08 +03:00
|
|
|
<header *ngIf="schemaPointer || samples.length"> Request samples </header>
|
2016-08-31 20:41:13 +03:00
|
|
|
<schema-sample *ngIf="schemaPointer && !samples.length" [skipReadOnly]="true" [pointer]="schemaPointer"> </schema-sample>
|
2016-07-20 11:07:08 +03:00
|
|
|
<tabs *ngIf="samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
|
2017-02-27 17:27:57 +03:00
|
|
|
<tab *ngIf="schemaPointer" tabTitle="JSON">
|
2016-07-20 11:07:08 +03:00
|
|
|
<schema-sample [pointer]="schemaPointer" [skipReadOnly]="true"> </schema-sample>
|
2016-01-31 20:37:51 +03:00
|
|
|
</tab>
|
2017-02-27 17:27:57 +03:00
|
|
|
<tab *ngFor="let sample of samples" [tabTitle]="sample.lang">
|
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>
|