using System;

using CommonHelpers.WASM;
using AFXUI;

namespace BookRegistry.Client {

//*************************************************************************************************
class WeatherForecastMI: NavMenuItem {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static WeatherForecastMI Item { get; private set; } = new WeatherForecastMI();

public static string HTML() => UpdateItem().PrepareItemHtml();
public static void ApplyToUI() => UpdateItem().Magistral_SetPageNameAndIcon();
public static WeatherForecastMI UpdateItem() => Item = new WeatherForecastMI();

public WeatherForecastMI()
{
   ID = "magistral_MI_WeatherForecastA";
   HRef = "/fetchdata";
   PageName = "Weather forecast";
   Title = "Weather forecast&#xA;(Fetch-data page)";
   IconClass = "oi oi-cloudy";
   CaptionHtml = $"{PageName} "+
      $"<span class='faint_text'>(</span>"+
      $"<span class='{IconClass}'></span>"+
      $"<span class='faint_text'>)</span>";
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // WeatherForecastMI
//**************************************************************************************************

} // BookRegistry.Client
