mitoSoft.Razor.DailyTimers.Components

A frontend library for handling (setting, edit,..) the daily timers of 'mitoSoft.DailyTimers.Core'


Keywords
timeswitch, time, trigger, timer, daily-timer, weekly-timer
License
GPL-3.0
Install
Install-Package mitoSoft.Razor.DailyTimers.Components -Version 6.1.3

Documentation

mitoSoft.Razor.DailyTimers.Components

This library provides a bunch of rozor controsl to handle the daily-timers of mitoSoft.DailyTimers.Core.

Dependencies

  • Microsoft.AspNetCore.Components.Web
  • mitoSoft.DailyTimers.Core
  • mitoSoft.Razor.Components

DailyTimeView

This control provides short overview to depict teh information of a IDailyTimer interface in a quick and easy manner. Furthermore it comes with a remove, a update and a select event to handel the timer appropriately in the calling component It could be embedded as follows:

  @foreach (var timer in this.Timers.SortByName())
  {
    <p>
      <DailyTimerView OnTimerRemoved="@OnTimerRemoved" OnTimerUpdated="@OnTimerUpdated" Timer="@timer"></DailyTimerView>
    </p>
  }

It looks like follows:

Screenshot

EditDailyTimerModal

This control is also build as modal control and provides all necessarily user controls elements to edit a IDailyTimer interface. It is callable synchronously via ShowDialog() and asynchronously via Show().

It looks like follows:

Screenshot

The complete example usage via a server-side blazor project can be found in the ExampleProject.