BlazorDateRangePicker
BlazorDateRangePicker copied to clipboard
Show dateTimePicker on click image
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.
Perhaps you could implement a click event handler to open the calendar manually.
- Add it in the markup
<span class="text-secondary" @onclick="ShowCalendar"> - Add
@refto yourDateRangePickerin the markup (after adding a property in your component code to hold the reference) - Implement
ShowCalendarto callyourDateRangePickerRef.Open()in it.