jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
182 stars 35 forks source link

Show dateTimePicker on click image #86

Open MAYSACOLS opened 1 year ago

MAYSACOLS commented 1 year ago

Hi, stupid question but, I have a calandar icon, I'd like to can select date just on a click on the button, how to do this ? is it possible ? `

@Date

             </div>`

thanks a lot.

Batou-Yoshikawa commented 6 months ago

Perhaps you could implement a click event handler to open the calendar manually.

  1. Add it in the markup <span class="text-secondary" @onclick="ShowCalendar">
  2. Add @ref to your DateRangePicker in the markup (after adding a property in your component code to hold the reference)
  3. Implement ShowCalendar to call yourDateRangePickerRef.Open() in it.