mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
parent
77bc3c44fc
commit
4acfc11148
|
@ -1,6 +1,6 @@
|
|||
<header *ngIf="data.responses.length"> Response samples </header>
|
||||
<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">
|
||||
<schema-sample [pointer]="response.pointer"></schema-sample>
|
||||
</tab>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul>
|
||||
<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>
|
||||
<ng-content></ng-content>
|
||||
|
|
|
@ -16,6 +16,10 @@ li {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
li /deep/ .redoc-markdown-block p {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.tab-success, .tab-error, .tab-redirect, .tab-info {
|
||||
&:before {
|
||||
content: "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user