jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
186 stars 34 forks source link

Single select #87

Open jonaswikstrom opened 1 year ago

jonaswikstrom commented 1 year ago

Really like your component!

I would love to be able to have the same UI (one component, two calendars) for either single select start/end date or the date range instead of having two components for this. Is there a way to configure the component to work this way?

billywatsy commented 1 year ago

is this feature available?

jdtcn commented 1 year ago

Hi, in version 4.5.0 I added the ability to enable two calendars in single date select mode using the ShowOnlyOneCalendar="false" parameter.

Try using it this way:

<DateRangePicker SingleDatePicker="true" AutoAdjustCalendars="false" LinkedCalendars="true" AutoApply="true" ShowOnlyOneCalendar="false" />