BlazorDateRangePicker icon indicating copy to clipboard operation
BlazorDateRangePicker copied to clipboard

Show dateTimePicker on click image

Open MAYSACOLS opened this issue 2 years ago • 1 comments

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 ? <div class="col text-center"> <span class="text-secondary"><i class="fa fa-calendar mx-2 fs-20 text-secondary-shadow"></i></span> <h4 class="text-secondary counter mt-0 number-font">@Date</h4> </div> thanks a lot.

MAYSACOLS avatar Mar 22 '23 09:03 MAYSACOLS

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.

Batou-Yoshikawa avatar Feb 19 '24 17:02 Batou-Yoshikawa