Created
March 21, 2024 13:28
-
-
Save bjoerntx/9d489be6edfde2bbd8cbdccfc34c6381 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
<h1 id="tableLabel">Document List</h1> | |
<td *ngIf="selectedDocument"> | |
<button (click)="saveDocument(selectedDocument.name)">Save</button> | |
</td> | |
<p *ngIf="!documentList"><em>Loading... Please refresh once the ASP.NET backend has started.</em></p> | |
<div class="container"> | |
<table *ngIf="documentList"> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Action</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr *ngFor="let document of documentList"> | |
<td>{{ document.name }}</td> | |
<td> | |
<button (click)="loadDocument(document.name)">Load</button> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div class="container container-70"> | |
<tx-document-editor width="800px" | |
height="600px" | |
webSocketURL="wss://localhost:7125/TXWebSocket" | |
[editMode]="selectedDocument === undefined ? 'ReadOnly' : 'Edit'"> | |
</tx-document-editor> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment