mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 21:40:32 +03:00
parent
77bc3c44fc
commit
4acfc11148
|
@ -1,6 +1,6 @@
|
||||||
<header *ngIf="data.responses.length"> Response samples </header>
|
<header *ngIf="data.responses.length"> Response samples </header>
|
||||||
<tabs *ngIf="data.responses.length">
|
<tabs *ngIf="data.responses.length">
|
||||||
<tab *ngFor="let response of data.responses" tabTitle="{{response.code}} {{response.description}}"
|
<tab *ngFor="let response of data.responses" [tabTitle]="response.code + ' ' + response.description | marked"
|
||||||
[tabStatus]="response.type">
|
[tabStatus]="response.type">
|
||||||
<schema-sample [pointer]="response.pointer"></schema-sample>
|
<schema-sample [pointer]="response.pointer"></schema-sample>
|
||||||
</tab>
|
</tab>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"
|
<li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"
|
||||||
class="tab-{{tab.tabStatus}}">{{tab.tabTitle}}</li>
|
class="tab-{{tab.tabStatus}}" [innerHTML]="tab.tabTitle"></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
|
|
|
@ -16,6 +16,10 @@ li {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li /deep/ .redoc-markdown-block p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-success, .tab-error, .tab-redirect, .tab-info {
|
.tab-success, .tab-error, .tab-redirect, .tab-info {
|
||||||
&:before {
|
&:before {
|
||||||
content: "";
|
content: "";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user