[]
The following quick start guide is intended to get you up and running with the Calendar control. In this quick start, you'll start with creating a new application, add the Calendar control to it, customize it and display the calendar.
type=note
Note: Blazor Server App or server-side app can be created using the Blazor Server App template. For more details, see Blazor Server topic under Blazor Project Types.
In the Solution Explorer, right click Dependencies and select Manage NuGet Packages.
In NuGet Package Manager, select nuget.org as the Package source.
Search and select the following packages and click Install.
Navigate to the wwwroot, open index.html file.
Register the client resources by adding the following lines of code to the <head> tag.
<link rel="stylesheet" href="/_content/C1.Blazor.Core/styles.css" />
<link rel="stylesheet" href="/_content/C1.Blazor.Calendar/styles.css" />
Add the following code to the <body> tag.
<script src="/_content/C1.Blazor.Core/scripts.js"></script>
<script src="/_content/C1.Blazor.Calendar/scripts.js"></script>
Display the Calendar control with first day of the week set as "Monday" by simply using the FirstDayOfWeek property of the C1Calendar class as shown in the following code:
@page "/Calendar/Index"
@using C1.Blazor.Calendar
@using C1.Blazor.Core
<C1Calendar FirstDayOfWeek="@DayOfWeek.Monday"></C1Calendar>