Aggiunto pager x negoziazioni e baskets

This commit is contained in:
Samuele Locatelli
2021-04-26 13:05:13 +02:00
parent dfb54c97de
commit 1c19d20403
2 changed files with 20 additions and 6 deletions
+10 -3
View File
@@ -44,8 +44,14 @@
</table>
}
</div>
<div class="card-footer text-right">
Ultime negoziazioni <input @bind-value="@numRecord" />
<div class="card-footer">
<div class="row">
<div class="col-8 col-lg-10">
</div>
<div class="col-4 col-lg-2">
<DataPager numRecord="@numRecord" numRecordChanged="ForceReload" />
</div>
</div>
</div>
</div>
@@ -62,8 +68,9 @@
baskets = await BBMService.BasketsGetAsync(numRecord);
}
protected async Task ForceReload()
protected async Task ForceReload(int newNum)
{
numRecord = newNum;
baskets = await BBMService.BasketsGetAsync(numRecord);
}
+10 -3
View File
@@ -47,8 +47,14 @@
</table>
}
</div>
<div class="card-footer text-right">
Ultime negoziazioni <input @bind-value="@numRecord" />
<div class="card-footer">
<div class="row">
<div class="col-8 col-lg-10">
</div>
<div class="col-4 col-lg-2">
<DataPager numRecord="@numRecord" numRecordChanged="ForceReload" />
</div>
</div>
</div>
</div>
@@ -65,8 +71,9 @@
negotiations = await BBMService.NegotiationsGetAsync(numRecord);
}
protected async Task ForceReload()
protected async Task ForceReload(int newNum)
{
numRecord = newNum;
negotiations = await BBMService.NegotiationsGetAsync(numRecord);
}