-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Scheduler Title when StartMonth changes in Year Views (#1873)
* Update Scheduler Title when StartMonth changes in Year Views * Update to the Demo page * Slight update to XML comment on SchedulerYearViewBase->StartMonth
- Loading branch information
1 parent
153e9e0
commit 749c2cf
Showing
8 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using Radzen; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace Radzen.Blazor | ||
{ | ||
/// <summary> | ||
/// A base class for <see cref="RadzenScheduler{TItem}" /> views. | ||
/// </summary> | ||
public abstract class SchedulerYearViewBase : SchedulerViewBase | ||
{ | ||
/// <summary> | ||
/// Gets the StartMonth of the view. | ||
/// </summary> | ||
/// <value>The start month.</value> | ||
public abstract Month StartMonth { get; set; } | ||
|
||
/// <summary> | ||
/// Called by the Blazor runtime when parameters are set. | ||
/// </summary> | ||
/// <param name="parameters">The parameters.</param> | ||
public override async Task SetParametersAsync(ParameterView parameters) | ||
{ | ||
if (parameters.DidParameterChange(nameof(StartMonth), StartMonth)) | ||
{ | ||
if (Scheduler != null) | ||
{ | ||
await Scheduler.Reload(); | ||
} | ||
} | ||
|
||
await base.SetParametersAsync(parameters); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters