2016-05-06 00:48:41 +03:00
|
|
|
<header *ngIf="data.schemaPointer || data.samples.length"> Request samples </header>
|
2016-06-18 21:02:01 +03:00
|
|
|
<schema-sample *ngIf="!data.samples.length" [skipReadOnly]="true" [pointer]="data.schemaPointer"> </schema-sample>
|
2016-05-18 16:59:54 +03:00
|
|
|
<tabs *ngIf="data.samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
|
2016-02-01 15:54:58 +03:00
|
|
|
<tab tabTitle="JSON">
|
2016-06-18 21:02:01 +03:00
|
|
|
<schema-sample [pointer]="data.schemaPointer" [skipReadOnly]="true"> </schema-sample>
|
2016-01-31 20:37:51 +03:00
|
|
|
</tab>
|
2016-04-29 22:57:24 +03:00
|
|
|
<tab *ngFor="let sample of data.samples" [tabTitle]="sample.lang">
|
2016-07-17 18:07:51 +03:00
|
|
|
<div class="code-sample">
|
|
|
|
<div class="action-buttons">
|
|
|
|
<span copy-button [copyText]="sample.source" class="hint--top hint--inversed"> <a>Copy</a> </span>
|
|
|
|
</div>
|
|
|
|
<pre [innerHtml]="sample.source | prism:sample.lang"></pre>
|
|
|
|
</div>
|
2016-01-31 20:37:51 +03:00
|
|
|
</tab>
|
|
|
|
</tabs>
|