Created
January 29, 2024 11:11
-
-
Save bjoerntx/d902104a34014879a1f138db932c739f 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
@page "/" | |
@rendermode InteractiveServer | |
@inject NavigationManager Navigator; | |
<div style="width: 800px; height: 600px;"> | |
<TXDocumentViewer | |
BasePath=@Navigator.BaseUri | |
@ref="_txdocumentviewer"> | |
</TXDocumentViewer> | |
</div> | |
<button @onclick="LoadDocment">Load Document</button> | |
@code { | |
private TXDocumentViewer? _txdocumentviewer; | |
// insert a table using the client-side API | |
private void LoadDocment() | |
{ | |
_txdocumentviewer?.LoadDocumentFromFile("App_Data/demo.tx"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment