Basaingeal / Razor.SweetAlert2

A Razor class library for interacting with SweetAlert2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How Can add date input type ?

ioer2008 opened this issue · comments

I don't believe date inputs are supported by the JavaScript SweetAlert2 library.

From the SweetAlert2 docs:

Input field type, can be text, email, password, number, tel, range, textarea, select, radio, checkbox, file and url.

This is the relevant issue from the SweetAlert2 repo: sweetalert2/sweetalert2#1058

I'd recommend what the maintainer recommends and pass the date input HTML manually using the Html property.