using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; namespace Front.Program.Views.Project; public partial class Register : ComponentBase { [Inject] IJSRuntime JS { get; set; } private string name; private DateTime birth = DateTime.Now; private string email; private string phone; private string address; // private async Task ClickedCalendar() // { // // var input = e.Value?.ToString() ?? string.Empty; // // if (input.All(c => c >= '0' && c <= '9') && input.Length <= 8) // // { // // birth = new string(input.Where(char.IsDigit).Take(8).ToArray()); // // } // await JS.InvokeVoidAsync("openDatePickerOnFocus", dateInput); // // Console.WriteLine($"Birth: {birth}"); // } }