SHARE
TWEET

Untitled

a guest Apr 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top