havit/Havit.Blazor

HxInputDate Hide Calender?

Closed this issue · 1 comments

Hello,

Is there a way to hide the calendar for the HxInputDate? I have a date property in my model that is used for Date of Birth. These dates of Birth are always atleast 20 years old. It is much easier for the users to just type the dates in that scenario.

If it is possible to hide the calendar is it possible to bind a datetime property to an HxInputText?

I ended up solving this by just hiding the calendar with css like this.

In your HxInputDate add CssClass="HideCalendar"

Then create the class where ever you are storing your custom css.

.HideCalendar .hx-input-date-dropdown-menu {
display: none;
}