Update cong estione embed dei PDF

This commit is contained in:
Samuele Locatelli
2024-02-21 18:31:16 +01:00
parent 186005656f
commit 7df41a8403
6 changed files with 21 additions and 5 deletions
+7 -1
View File
@@ -236,7 +236,8 @@ else
</div>
<div class="col-2">
<div class="px-1 w-100">
<a target="_blank" href="@($"disegni/{RecMSE.CodArticolo}.pdf")" class="btn btn-sm btn-secondary w-100"><i class="fa-regular fa-file-pdf"></i></a>
@* <a target="_blank" href="@($"disegni/{RecMSE.CodArticolo}.pdf")" class="btn btn-sm btn-secondary w-100"><i class="fa-regular fa-file-pdf"></i></a> *@
<button class="btn btn-sm btn-info w-100" @onclick="ToggleDraw"><i class="fa-regular fa-file-pdf"></i></button>
</div>
</div>
</div>
@@ -245,3 +246,8 @@ else
}
}
@if (showDraw)
{
<embed src="@($"disegni/{RecMSE.CodArticolo}.pdf")" width="100%" height="800px" />
}
+10
View File
@@ -37,6 +37,16 @@ namespace MP_TAB3.Components
#endregion Public Properties
private bool showDraw { get; set; } = false;
/// <summary>
/// Toggle visibilità button
/// </summary>
protected void ToggleDraw()
{
showDraw = !showDraw;
}
#region Public Methods
/// <summary>
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2402.2117</Version>
<Version>6.16.2402.2118</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2402.2117</h4>
<h4>Versione: 6.16.2402.2118</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2402.2117
6.16.2402.2118
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2402.2117</version>
<version>6.16.2402.2118</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>