-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc86734
commit e11b757
Showing
2 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
30 changes: 19 additions & 11 deletions
30
packages/docs/src/app/shared/example-viewer/example-viewer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
<div class="docs-example-viewer-wrapper"> | ||
<div class="docs-example-viewer-title"> | ||
<div class="docs-example-viewer-title-spacer">{{exampleData?.title}}</div> | ||
<div class="docs-example-viewer-title"> | ||
<div class="docs-example-viewer-title-spacer">{{exampleData?.title}}</div> | ||
|
||
<button type="button" (click)="toggleSourceView()"> | ||
<button type="button" (click)="toggleSourceView()"> | ||
SourceView button | ||
</button> | ||
</button> | ||
|
||
|
||
</div> | ||
|
||
<div class="docs-example-viewer-source" *ngIf="showSource"> | ||
</div> | ||
|
||
</div> | ||
<div class="docs-example-viewer-source" *ngIf="showSource"> | ||
<mc-tab-group> | ||
<mc-tab *ngFor="let tabName of _getExampleTabNames()" [label]="tabName"> | ||
<div class="docs-example-source-wrapper"> | ||
<pre class="docs-example-source"> | ||
<doc-viewer #viewer [documentUrl]="exampleTabs[tabName]"></doc-viewer> | ||
</pre> | ||
</div> | ||
</mc-tab> | ||
</mc-tab-group> | ||
</div> | ||
|
||
<div class="docs-example-viewer-body"> | ||
<ng-template [cdkPortalOutlet]="selectedPortal"></ng-template> | ||
</div> | ||
<div class="docs-example-viewer-body"> | ||
<ng-template [cdkPortalOutlet]="selectedPortal"></ng-template> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters