The following quick start guide is intended to get you up and running with the C1DatePicker control. In this quick start, you'll start with creating a new project, add a C1DatePicker control to your application, configure the control and display today's date in it.
Example Title |
Copy Code
|
---|---|
<link rel="stylesheet" href="/_content/C1.Blazor.Core/styles.css" /> <link rel="stylesheet" href="/_content/C1.Blazor.Calendar/styles.css" /> <link rel="stylesheet" href="/_content/C1.Blazor.DateTimeEditors/styles.css" /> <link rel="stylesheet" href="/_content/C1.Blazor.Input/styles.css" /> |
HTML |
Copy Code
|
---|---|
<script src="/_content/C1.Blazor.Core/scripts.js"></script> <script src="/_content/C1.Blazor.Calendar/scripts.js"></script> <script src="/_content/C1.Blazor.Input/scripts.js"></script> |
Display today's date in the DatePicker control by simply using the Value property of the C1DatePicker class as shown in the following code:
C# |
Copy Code
|
---|---|
@page "/DatePicker/Index" @using C1.Blazor.Core @using C1.Blazor.DateTimeEditors @using System; @using C1.Blazor.Input <C1DatePicker Value="DateTime.Today"></C1DatePicker> |