Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 10, 2020 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/59d34613302e96659b6c4a51614bd656 to your computer and use it in GitHub Desktop.
Save bjoerntx/59d34613302e96659b6c4a51614bd656 to your computer and use it in GitHub Desktop.
<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