Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 21, 2024 13:28
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/9d489be6edfde2bbd8cbdccfc34c6381 to your computer and use it in GitHub Desktop.
Save bjoerntx/9d489be6edfde2bbd8cbdccfc34c6381 to your computer and use it in GitHub Desktop.
<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