Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show dateTimePicker on click image #86

Open
MAYSACOLS opened this issue Mar 22, 2023 · 1 comment
Open

Show dateTimePicker on click image #86

MAYSACOLS opened this issue Mar 22, 2023 · 1 comment

Comments

@MAYSACOLS
Copy link

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.

@Batou-Yoshikawa
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants