Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. @using BlazorMVVM.Client.ViewModels
  2.  
  3. <table class="table">
  4. <thead>
  5. <tr>
  6. <th>Date</th>
  7. <th>Temp. (@fetchDataViewModel.DisplayTemperatureScaleShort)</th>
  8. <th>Summary</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. @foreach (var forecast in fetchDataViewModel.WeatherForecasts)
  13. {
  14. <tr>
  15. <td>@forecast.Date.ToShortDateString()</td>
  16. <td>@fetchDataViewModel.DisplayTemperature(@forecast.TemperatureC)</td>
  17. <td>@forecast.Summary</td>
  18. </tr>
  19. }
  20. </tbody>
  21. </table>
  22.  
  23. @functions {
  24. [Parameter]
  25. private IBasicForecastViewModel ViewModel { get; set; }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement