Created
September 10, 2020 09:53
-
-
Save bjoerntx/59d34613302e96659b6c4a51614bd656 to your computer and use it in GitHub Desktop.
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
<mat-tab-group (selectedTabChange)="onTabChanged($event);"> | |
<mat-tab label="Tab 1"> | |
<h1>Content 1</h1> | |
<p>Text Control for Angular</p> | |
</mat-tab> | |
<mat-tab label="Tab 2 - Lazy Loaded Viewer"> | |
<ng-template matTabContent> | |
<h1>Content 2</h1> | |
<tx-document-viewer | |
width="800px" | |
height="600px" | |
basePath="https://backend.textcontrol.com?access-token=your-token" | |
documentData="SGVsbG8gdGhlcmU=" | |
dock="Fill" | |
toolbarDocked=true | |
documentPath="test.docx" | |
isSelectionActivated=true | |
showThumbnailPane=true> | |
</tx-document-viewer> | |
</ng-template> | |
</mat-tab> | |
<mat-tab label="Tab 3"> | |
<h1>Content 3</h1> | |
<p>Text Control for Angular</p> | |
</mat-tab> | |
</mat-tab-group> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment