5d72d21fb1
Update gestione paginazione (visibile solo dove serve) + fix calcolo di alcuni intems male filtrati
83 lines
3.8 KiB
Plaintext
83 lines
3.8 KiB
Plaintext
<div class="card shadow">
|
|
<div class="card-header">
|
|
<b>@Title</b>
|
|
</div>
|
|
<div class="card-body p-1">
|
|
@if (DetailInfo == null && totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning p-2 text-center">No Info Present</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped table-responsive-lg small">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Key
|
|
<Sorter ParamName="Key" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th class="text-end">
|
|
Value
|
|
<Sorter ParamName="Value" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListRecord)
|
|
{
|
|
<tr class="text-truncate">
|
|
@if (EnabAbbrev)
|
|
{
|
|
<td title="@item.Key">@(Abbrev(item.Key, MaxKeyChar))</td>
|
|
<td class="text-end small" title="@item.Value">
|
|
@if (string.IsNullOrEmpty(keySelected))
|
|
{
|
|
<button class="btn btn-sm btn-warning py-1" title="Mostra File" @onclick="() => SetDetail(item.Key)"><i class="fa-solid fa-stamp"></i></button>
|
|
}
|
|
else
|
|
{
|
|
if (item.Key.Equals(keySelected))
|
|
{
|
|
<button class="btn btn-sm btn-warning py-1" title="Nascondi File" @onclick="() => SetDetail(item.Key)"><i class="fa-solid fa-stamp"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-sm btn-secondary py-1" disabled><i class="fa-solid fa-stamp"></i></button>
|
|
}
|
|
}
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td>@item.Key</td>
|
|
<td class="text-end small text-truncate" style="max-width: 15rem;" title="@item.Value">@item.Value</td>
|
|
}
|
|
</tr>
|
|
@if (!string.IsNullOrEmpty(keySelected) && item.Key.Equals(keySelected))
|
|
{
|
|
<tr>
|
|
<td colspan="2" class="small">
|
|
<CopyToClipboard Text="@item.Value" ShowText="false"></CopyToClipboard>
|
|
<div class="alert alert-warning p-2 text-truncate" style="width:25rem;" title="@item.Value">
|
|
@(FixChars(item.Value))
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
<div class="card-footer p-0 small">
|
|
@if (totalCount > numRecord)
|
|
{
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="setNumRec" numPageChanged="setNumPage" totalCount="totalCount" showLoading="isLoading" DisplSize="DataPager.ObjSize.small" NumPages="3" />
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|